Changeset 391 for branches/1.1dev/lib
- Timestamp:
- Nov 19, 2011 3:55:18 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1dev/lib/Upload.inc.php
r310 r391 374 374 // Is an array, but just one value. Pull it out. 375 375 $file_name = trim($custom_file_name[0]); 376 raiseMsg(sprintf(_("The file %s has been renamed to %s."), $files['name'][$i], $file_name), MSG_NOTICE, __FILE__, __LINE__); 376 if ($this->display_messages) { 377 raiseMsg(sprintf(_("The file %s has been renamed to %s."), $files['name'][$i], $file_name), MSG_NOTICE, __FILE__, __LINE__); 378 } 377 379 logMsg(sprintf('Using custom file name: %s', $file_name), LOG_DEBUG, __FILE__, __LINE__); 378 380 } else if (!is_array($custom_file_name) && '' != trim($custom_file_name)) { 379 381 // Valid custom file name. 380 382 $file_name = $custom_file_name; 381 raiseMsg(sprintf(_("The file %s has been renamed to %s."), $files['name'][$i], $file_name), MSG_NOTICE, __FILE__, __LINE__); 383 if ($this->display_messages) { 384 raiseMsg(sprintf(_("The file %s has been renamed to %s."), $files['name'][$i], $file_name), MSG_NOTICE, __FILE__, __LINE__); 385 } 382 386 logMsg(sprintf('Using custom file name: %s', $file_name), LOG_DEBUG, __FILE__, __LINE__); 383 387 } else {
Note: See TracChangeset
for help on using the changeset viewer.