Skip to content

Commit

Permalink
MDL-24755 fixed double define in configonly scripts, credit goes to A…
Browse files Browse the repository at this point in the history
…parup Banerjee
  • Loading branch information
skodak committed Oct 19, 2010
1 parent 192bcd7 commit e4c05ec
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,14 @@
readfile("$CFG->dataroot/climaintenance.html");
die;
} else {
define('CLI_MAINTENANCE', true);
if (!defined('CLI_MAINTENANCE')) {
define('CLI_MAINTENANCE', true);
}
}
} else {
define('CLI_MAINTENANCE', false);
if (!defined('CLI_MAINTENANCE')) {
define('CLI_MAINTENANCE', false);
}
}

// Detect ajax scripts - they are similar to CLI because we can not redirect, output html, etc.
Expand Down

0 comments on commit e4c05ec

Please sign in to comment.