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

print_maintenance_message has hardcoded SITEID == 1

    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');

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            dongsheng Dongsheng Cai added a comment -

            fixed, thanks for reporting

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

            Thanks so much!

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

            Resolved. Closing

            Show
            rwijaya Rossiani Wijaya added a comment - Resolved. Closing

              People

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

                Dates

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