Moodle
  1. Moodle
  2. MDL-20113

print_maintenance_message has hardcoded SITEID == 1

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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');

        Gliffy Diagrams

          Activity

          Hide
          Dongsheng Cai added a comment -

          fixed, thanks for reporting

          Show
          Dongsheng Cai added a comment - fixed, thanks for reporting
          Hide
          Mark Nielsen added a comment -

          Thanks so much!

          Show
          Mark Nielsen added a comment - Thanks so much!
          Hide
          Rossiani Wijaya added a comment -

          Resolved. Closing

          Show
          Rossiani Wijaya added a comment - Resolved. Closing

            People

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

              Dates

              • Created:
                Updated:
                Resolved: