Changeset 3011

Show
Ignore:
Timestamp:
07/08/2008 11:48:57 PM (5 months ago)
Author:
armen
Message:

Fixed path in error message. closes #466

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/modules/forge/libraries/Form_Upload.php

    r3003 r3011  
    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