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

Invalid function name - is_image_by_extentsion in QTI export

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8, 1.9
    • Fix Version/s: 1.8.7, 1.9.3
    • Component/s: Questions
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      There seems to be a write error in the name of a function in
      question/format/qti2/qt_common.php

      Line 40 is:
      function is_image_by_extentsion($file)

      but should be:
      function is_image_by_extension($file)

      I get the following error with drag and drop questiontype which uses this function:
      Fatal error: Call to undefined function is_image_by_extension() in question/type/dragdrop/questiontype.php on line 436

        Attachments

          Activity

            People

            Assignee:
            timhunt Tim Hunt
            Reporter:
            harry21 Harald Winkelmann
            Tester:
            Petr Skoda
            Participants:
            Component watchers:
            Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              15/Oct/08