Show
Ignore:
Timestamp:
07/20/2008 08:34:36 PM (4 months ago)
Author:
Shadowhand
Message:

Replacing file_exists calls with is_file and is_dir, where possible.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/helpers/upload.php

    r3160 r3168  
    4848                $directory = rtrim($directory, '/').'/'; 
    4949 
    50                 if ( ! file_exists($directory) AND Kohana::config('upload.create_directories') === TRUE) 
     50                if ( ! is_dir($directory) AND Kohana::config('upload.create_directories') === TRUE) 
    5151                { 
    5252                        // Create the upload directory