Changeset 825
- Timestamp:
- 10/14/2007 03:49:50 PM (14 months ago)
- Location:
- trunk/system
- Files:
-
- 4 modified
-
core/Kohana.php (modified) (2 diffs)
-
libraries/Loader.php (modified) (3 diffs)
-
libraries/URI.php (modified) (2 diffs)
-
libraries/Upload.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/core/Kohana.php
r816 r825 461 461 foreach($hooks as $file) 462 462 { 463 Log::add('debug', 'Loading hook '.$file);463 Log::add('debug', 'Loading hook '.$file); 464 464 include $file; 465 465 } … … 847 847 // If the file is required, throw an exception 848 848 if ($required == TRUE) 849 {850 849 throw new Kohana_Exception('core.resource_not_found', $directory, $filename); 851 }852 850 853 851 return $found[$hash] = FALSE; -
trunk/system/libraries/Loader.php
r816 r825 79 79 80 80 if ($return == TRUE) 81 {82 81 return $class; 83 } 84 else 85 { 86 Kohana::instance()->$name = $class; 87 } 82 83 Kohana::instance()->$name = $class; 88 84 } 89 85 } … … 103 99 // Return the new database object 104 100 if ($return == TRUE) 105 {106 101 return $db; 107 } 108 else 109 { 110 Kohana::instance()->db = $db; 111 } 102 103 Kohana::instance()->db = $db; 112 104 } 113 105 … … 158 150 159 151 if ($alias === TRUE) 160 {161 152 return $model; 162 } 163 else 164 { 165 Kohana::instance()->$alias = $model; 166 } 153 154 Kohana::instance()->$alias = $model; 167 155 } 168 156 -
trunk/system/libraries/URI.php
r816 r825 41 41 * 42 42 * @access public 43 * @param int 43 * @param integer 44 44 * @param mixed 45 45 * @return mixed … … 56 56 * 57 57 * @access public 58 * @param int 58 * @param integer 59 59 * @param mixed 60 60 * @return mixed -
trunk/system/libraries/Upload.php
r816 r825 1 <?php defined('SYSPATH') or die('No direct script access.');1 î<?php defined('SYSPATH') or die('No direct script access.'); 2 2 /** 3 3 * Kohana: The swift, small, and secure PHP5 framework … … 124 124 * 125 125 * @access public 126 * @param array126 * @param array 127 127 * @return boolean 128 128 */ … … 575 575 576 576 if ($this->upload_path == '' OR ! @is_dir($this->upload_path)) 577 {578 577 throw new Kohana_Exception('upload.no_filepath'); 579 }580 578 581 579 if ( ! is_writable($this->upload_path)) 582 {583 580 throw new Kohana_Exception('upload.not_writable', $this->upload_path); 584 }585 581 586 582 $this->upload_path = rtrim($this->upload_path, '/').'/';
