From: cash Date: Wed, 6 Mar 2013 20:03:04 +0000 (-0500) Subject: Fixes #5202 defining the global $CONFIG in upgrade_code() X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=66c4d2ac5d6c538f7fa2ddd472bfaf9bb7cc9551;p=lorea%2Felgg.git Fixes #5202 defining the global $CONFIG in upgrade_code() --- 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();