diff options
Diffstat (limited to 'upgrade.php')
-rw-r--r-- | upgrade.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/upgrade.php b/upgrade.php index e1b297d83..8de74ad54 100644 --- a/upgrade.php +++ b/upgrade.php @@ -11,22 +11,22 @@ * @link http://elgg.org/ */ - // Include elgg engine
- define('upgrading','upgrading');
+ // Include elgg engine + define('upgrading','upgrading'); define('externalpage',true); - require_once(dirname(__FILE__) . "/engine/start.php");
-
+ require_once(dirname(__FILE__) . "/engine/start.php"); + if (get_input('upgrade') == 'upgrade') { if (version_upgrade_check()) { version_upgrade(); - }
+ } datalist_set('simplecache_lastupdate',0); - elgg_filepath_cache_reset();
- } else {
- global $CONFIG;
- echo elgg_view('settings/upgrading');
- exit;
+ elgg_filepath_cache_reset(); + } else { + global $CONFIG; + echo elgg_view('settings/upgrading'); + exit; } forward(); |