Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-32286

$string['uploadextension']: ambiguous statement in EN lang pack

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.9.17, 2.1, 2.2
    • Fix Version/s: 2.1.7, 2.2.4, 2.3.1
    • Component/s: Language
    • Labels:

      Description

      The string currently used in case of UPLOAD_ERR_EXTENSION:

      $string['uploadextension'] = 'File upload stopped by extension'

      can lead to kind of misunderstandings, the user can think at the file extension rather than to a PHP extension.
      It should be something like:

      $string['uploadextension'] = 'File upload stopped by a PHP extension'

      according with http://php.net/manual/en/features.file-upload.errors.php:

      UPLOAD_ERR_EXTENSION

      Value: 8; A PHP extension stopped the file upload. PHP does not provide a way to ascertain which extension caused the file upload to stop; examining the list of loaded extensions with phpinfo() may help. Introduced in PHP 5.2.0.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              poltawski Dan Poltawski
              Reporter:
              matteo Matteo Scaramuccia
              Peer reviewer:
              Ankit Agarwal
              Integrator:
              Sam Hemelryk
              Tester:
              Sam Hemelryk
              Participants:
              Component watchers:
              David Mudrák (@mudrd8mz), Helen Foster, Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Jul/12