aboutsummaryrefslogtreecommitdiff
path: root/upgrade.php
diff options
context:
space:
mode:
Diffstat (limited to 'upgrade.php')
-rw-r--r--upgrade.php59
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