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

print_maintenance_message has hardcoded SITEID == 1

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.5
    • Fix Version/s: 1.9.6
    • Component/s: Administration
    • Labels:
      None
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      In lib/weblib.php:print_maintenance_message() the path is hardcoded to 1 instead of using SITEID. All the other code regarding site maintenance uses SITEID instead of 1. Here is the line:

      @include($CFG->dataroot.'/1/maintenance.html');

        Attachments

          Activity

            People

            Assignee:
            dongsheng Dongsheng Cai
            Reporter:
            bushido Mark Nielsen
            Tester:
            Rossiani Wijaya
            Participants:
            Component watchers:
            Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            3 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              21/Oct/09