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

Typo in constant name results in a PHP error (E_NOTICE level)

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      1/ Upload the following file:

      <?php
       
      require_once('config.php');
       
      $CFG->debug = 0;
       
      $ignore = $PAGE->legacythemeinuse;

      2/ Run the file

      Expected Result:
      no output

      Actual Result - a notce and debug notice is displayed

      Show
      1/ Upload the following file: <?php   require_once('config.php');   $CFG->debug = 0;   $ignore = $PAGE->legacythemeinuse; 2/ Run the file Expected Result: no output Actual Result - a notce and debug notice is displayed
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE, MOODLE_22_STABLE
    • Pull from Repository:

      Description

      Line 547 of lib/pagelib.php refers to DEVELOPER_DEBUG (which is undefined) instead of DEBUG_DEVELOPER.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  1/Aug/11