Changeset 3168 for trunk/modules
- Timestamp:
- 07/20/2008 08:34:36 PM (4 months ago)
- Location:
- trunk/modules
- Files:
-
- 4 modified
-
archive/libraries/Archive.php (modified) (2 diffs)
-
payment/libraries/drivers/Payment/Yourpay.php (modified) (1 diff)
-
smarty/controllers/smarty_demo.php (modified) (1 diff)
-
smarty/libraries/MY_Smarty.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/archive/libraries/Archive.php
r3163 r3168 62 62 empty($name) and $name = $path; 63 63 64 if ( file_exists($path) ANDis_dir($path))64 if (is_dir($path)) 65 65 { 66 66 // Force directories to end with a slash … … 109 109 throw new Kohana_Exception('archive.directory_unwritable', $directory); 110 110 111 if ( file_exists($filename))111 if (is_file($filename)) 112 112 { 113 113 // Unable to write to the file -
trunk/modules/payment/libraries/drivers/Payment/Yourpay.php
r3163 r3168 56 56 { 57 57 // Check to make sure the certificate is valid 58 $this->certificate = (file_exists($config['certificate'])) ? $config['certificate'] : FALSE;58 $this->certificate = is_file($config['certificate']) ? $config['certificate'] : FALSE; 59 59 60 60 if (!$this->certificate) -
trunk/modules/smarty/controllers/smarty_demo.php
r2532 r3168 6 6 const ALLOW_PRODUCTION = FALSE; 7 7 8 public function index()9 {10 $welcome = new View('demo');11 $welcome->message = "Welcome to the Kohana!";8 public function index() 9 { 10 $welcome = new View('demo'); 11 $welcome->message = "Welcome to the Kohana!"; 12 12 13 $welcome->render(TRUE);14 }13 $welcome->render(TRUE); 14 } 15 15 } -
trunk/modules/smarty/libraries/MY_Smarty.php
r3163 r3168 60 60 public function checkDirectory($directory) 61 61 { 62 if ((! file_exists($directory) AND ! @mkdir($directory, 0755)) OR ! is_writ eable($directory) OR !is_executable($directory))62 if ((! file_exists($directory) AND ! @mkdir($directory, 0755)) OR ! is_writable($directory) OR !is_executable($directory)) 63 63 { 64 64 $error = 'Compile/Cache directory "%s" is not writeable/executable';
