Changeset 3087 for tags/2.1.3
- Timestamp:
- 07/12/2008 12:05:17 AM (5 months ago)
- Files:
-
- 1 modified
-
tags/2.1.3/modules/forge/libraries/Form_Upload.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tags/2.1.3/modules/forge/libraries/Form_Upload.php
r3004 r3087 67 67 68 68 // Make the path asbolute and normalize it 69 $dir = str_replace('\\', '/', realpath($dir)).'/';69 $directory = str_replace('\\', '/', realpath($dir)).'/'; 70 70 71 71 // Make sure the upload director is valid and writable 72 if ($dir === '/' OR ! is_dir($dir) OR ! is_writable($dir))72 if ($directory === '/' OR ! is_dir($directory) OR ! is_writable($directory)) 73 73 throw new Kohana_Exception('upload.not_writable', $dir); 74 74 75 $this->directory = $dir ;75 $this->directory = $directory; 76 76 } 77 77
