Changeset 2306
- Timestamp:
- 03/15/2008 09:35:43 AM (8 months ago)
- Files:
-
- 1 modified
-
trunk/system/core/Kohana.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/core/Kohana.php
r2292 r2306 676 676 * @param boolean is the file required? 677 677 * @param boolean use custom file extension? 678 * @param boolean use cache 678 679 * @return array if the type is i18n or config 679 680 * @return string if the file is found 680 681 * @return FALSE if the file is not found 681 682 */ 682 public static function find_file($directory, $filename, $required = FALSE, $ext = FALSE )683 public static function find_file($directory, $filename, $required = FALSE, $ext = FALSE, $use_cache = TRUE) 683 684 { 684 685 static $found = array(); … … 687 688 $hash = sha1($search.$ext); 688 689 689 if ( isset($found[$hash]))690 if ($use_cache AND isset($found[$hash])) 690 691 return $found[$hash]; 691 692
