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/modules/smarty/libraries/MY_Smarty.php

    r3163 r3168  
    6060        public function checkDirectory($directory) 
    6161        { 
    62                 if ((! file_exists($directory) AND ! @mkdir($directory, 0755)) OR ! is_writeable($directory) OR !is_executable($directory))  
     62                if ((! file_exists($directory) AND ! @mkdir($directory, 0755)) OR ! is_writable($directory) OR !is_executable($directory))  
    6363                { 
    6464                        $error = 'Compile/Cache directory "%s" is not writeable/executable';