Changeset 391 for branches/1.1dev/lib


Ignore:
Timestamp:
Nov 19, 2011 3:55:18 PM (12 years ago)
Author:
anonymous
Message:

Granular raiseMsg for Uploads. Turn off autocomplete for password fields.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1dev/lib/Upload.inc.php

    r310 r391  
    374374                        // Is an array, but just one value. Pull it out.
    375375                        $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                        }
    377379                        logMsg(sprintf('Using custom file name: %s', $file_name), LOG_DEBUG, __FILE__, __LINE__);
    378380                    } else if (!is_array($custom_file_name) && '' != trim($custom_file_name)) {
    379381                        // Valid custom file name.
    380382                        $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                        }
    382386                        logMsg(sprintf('Using custom file name: %s', $file_name), LOG_DEBUG, __FILE__, __LINE__);
    383387                    } else {
Note: See TracChangeset for help on using the changeset viewer.