Moodle

print_maintenance_message has hardcoded SITEID == 1

Details

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

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

Vote (3)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: