MDL-16433 themes and javascript files are not blocked by running upgrade anymore

This commit is contained in:
skodak
2008-09-14 08:40:23 +00:00
parent 8429163db9
commit a78bee285d
19 changed files with 107 additions and 63 deletions
+2 -2
View File
@@ -160,8 +160,8 @@ global $HTTPSPAGEREQUIRED;
/// Load up any configuration from the config table
$CFG = get_config();
/// Verify upgrade is not running
if (isset($CFG->upgraderunning)) {
/// Verify upgrade is not running unless we are in a script that needs to execute in any case
if (!defined('NO_UPGRADE_CHECK') and isset($CFG->upgraderunning)) {
if ($CFG->upgraderunning < time()) {
unset_config('upgraderunning');
} else {