Changeset 301 for tags/2.0.2
- Timestamp:
- Jan 24, 2008 4:30:46 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/2.0.2/lib/Upload.inc.php
r298 r301 279 279 'extension' => $this->getFilenameExtension($file_name), 280 280 'original_index' => $i, 281 'original_name' => $files['name'][$i], 281 282 ); 282 283 continue; … … 298 299 * @access public 299 300 * @param string $file_name A name of a file. 301 * @param bool $use_glob Set true to use glob to find the filename (using $file_name as a pattern) 300 302 * @return bool Success of operation. 301 303 */ 302 function deleteFile($file_name )304 function deleteFile($file_name, $use_glob=false) 303 305 { 304 306 // Ensure we have a upload directory. … … 308 310 } 309 311 310 $file_path_name = $this->getParam('upload_path') . '/' . $file_name;312 $file_path_name = $this->getParam('upload_path') . '/' . ($use_glob ? $this->getFilenameGlob($file_name) : $file_name); 311 313 312 314 if (!is_file($file_path_name)) {
Note: See TracChangeset
for help on using the changeset viewer.