diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-10-16 02:33:55 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-10-16 02:33:55 +0000 |
commit | 17c17807cc0b63d322d56acfae4f30399041cdb5 (patch) | |
tree | fe780bd74f828ab2fc9c107c0bb390f3a18b74c4 /upgrade.php | |
parent | 721763663962364485e5a9958854a6311f32298b (diff) | |
download | elgg-17c17807cc0b63d322d56acfae4f30399041cdb5.tar.gz elgg-17c17807cc0b63d322d56acfae4f30399041cdb5.tar.bz2 |
Standardized files
git-svn-id: http://code.elgg.org/elgg/trunk@3553 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'upgrade.php')
-rw-r--r-- | upgrade.php | 59 |
1 files changed, 29 insertions, 30 deletions
diff --git a/upgrade.php b/upgrade.php index 8de74ad54..af06552cd 100644 --- a/upgrade.php +++ b/upgrade.php @@ -1,33 +1,32 @@ <?php - /** - * Elgg upgrade script. - * - * This script triggers any upgrades necessary, ensuring that upgrades are triggered deliberately by a single - * user. - * - * @package Elgg - * @subpackage Core - * @author Curverider Ltd - * @link http://elgg.org/ - */ +/** + * Elgg upgrade script. + * + * This script triggers any upgrades necessary, ensuring that upgrades are triggered deliberately by a single + * user. + * + * @package Elgg + * @subpackage Core + * @author Curverider Ltd + * @link http://elgg.org/ + */ - // Include elgg engine - define('upgrading','upgrading'); - define('externalpage',true); - 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; +// Include elgg engine +define('upgrading','upgrading'); +define('externalpage',true); +require_once(dirname(__FILE__) . "/engine/start.php"); + +if (get_input('upgrade') == 'upgrade') { + if (version_upgrade_check()) { + version_upgrade(); } - - forward(); -?>
\ No newline at end of file + datalist_set('simplecache_lastupdate',0); + + elgg_filepath_cache_reset(); +} else { + global $CONFIG; + echo elgg_view('settings/upgrading'); + exit; +} + +forward();
\ No newline at end of file |