Permalink
Browse files

Use SITEID instead of hardcoded value.

SITEID could be != 1 in older installations.
  • Loading branch information...
1 parent 1d9498e commit eeefd0b0dfc285e725a5e7202b295d4c280b7ef6 paca70 committed May 11, 2005
Showing with 2 additions and 2 deletions.
  1. +1 −1 admin/maintenance.php
  2. +1 −1 lib/moodlelib.php
View
@@ -17,7 +17,7 @@
error("Could not create site folder. The site administrator needs to fix the file permissions");
}
- $filename = $CFG->dataroot.'/1/maintenance.html';
+ $filename = $CFG->dataroot.'/'.SITEID.'/maintenance.html';
if ($form = data_submitted()) {
if (confirm_sesskey()) {
View
@@ -1280,7 +1280,7 @@ function require_login($courseid=0, $autologinguest=true, $cm=null) {
// If the site is currently under maintenance, then print a message
if (!isadmin()) {
- if (file_exists($CFG->dataroot.'/1/maintenance.html')) {
+ if (file_exists($CFG->dataroot.'/'.SITEID.'/maintenance.html')) {
print_maintenance_message();
exit;
}

0 comments on commit eeefd0b

Please sign in to comment.