Changeset 3168 for trunk/system/core/Kohana.php
- Timestamp:
- 07/20/2008 08:34:36 PM (4 months ago)
- Files:
-
- 1 modified
-
trunk/system/core/Kohana.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/core/Kohana.php
r3164 r3168 563 563 $filename = self::log_directory().date('Y-m-d').'.log'.EXT; 564 564 565 if ( ! file_exists($filename))565 if ( ! is_file($filename)) 566 566 { 567 567 // Write the SYSPATH checking header … … 605 605 $dir = realpath($dir); 606 606 607 if ( file_exists($dir) ANDis_dir($dir) AND is_writable($dir))607 if (is_dir($dir) AND is_writable($dir)) 608 608 { 609 609 // Change the log directory … … 634 634 $path = APPPATH.'cache/kohana_'.$name; 635 635 636 if ( file_exists($path))636 if (is_file($path)) 637 637 { 638 638 // Check the file modification time … … 671 671 { 672 672 // Delete cache 673 return ( file_exists($path) and unlink($path));673 return (is_file($path) and unlink($path)); 674 674 } 675 675 else
