diff options
author | cash <cash.costello@gmail.com> | 2013-03-06 15:03:04 -0500 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2013-03-06 15:03:04 -0500 |
commit | 66c4d2ac5d6c538f7fa2ddd472bfaf9bb7cc9551 (patch) | |
tree | 6ba2202b60c6f516546e4834d2a05a9de4eb11c4 | |
parent | db59f4448e66fbed3fbfe2ace074cf75548f1a7e (diff) | |
download | elgg-66c4d2ac5d6c538f7fa2ddd472bfaf9bb7cc9551.tar.gz elgg-66c4d2ac5d6c538f7fa2ddd472bfaf9bb7cc9551.tar.bz2 |
Fixes #5202 defining the global $CONFIG in upgrade_code()
-rw-r--r-- | engine/lib/upgrade.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engine/lib/upgrade.php b/engine/lib/upgrade.php index 2883dc509..d684af862 100644 --- a/engine/lib/upgrade.php +++ b/engine/lib/upgrade.php @@ -17,6 +17,9 @@ * @access private */ function upgrade_code($version, $quiet = FALSE) { + // do not remove - upgrade scripts depend on this + global $CONFIG; + $version = (int) $version; $upgrade_path = elgg_get_config('path') . 'engine/lib/upgrades/'; $processed_upgrades = elgg_get_processed_upgrades(); |