Changeset 3087 for tags

Show
Ignore:
Timestamp:
07/12/2008 12:05:17 AM (5 months ago)
Author:
armen
Message:

Merged 3011 in to the 2.1.3

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tags/2.1.3/modules/forge/libraries/Form_Upload.php

    r3004 r3087  
    6767 
    6868                // Make the path asbolute and normalize it 
    69                 $dir = str_replace('\\', '/', realpath($dir)).'/'; 
     69                $directory = str_replace('\\', '/', realpath($dir)).'/'; 
    7070 
    7171                // 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)) 
    7373                        throw new Kohana_Exception('upload.not_writable', $dir); 
    7474 
    75                 $this->directory = $dir; 
     75                $this->directory = $directory; 
    7676        } 
    7777