aboutsummaryrefslogtreecommitdiff
path: root/upgrade.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-29 13:40:30 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-29 13:40:30 +0000
commitea73090084023d4e18b68f5010c2eae2fa6e9f7f (patch)
tree0dcf7cd3155ae72173aadc05d141cd5fb7a80508 /upgrade.php
parent74f92a9f12c1411da76abd501cafe240e2b9046d (diff)
downloadelgg-ea73090084023d4e18b68f5010c2eae2fa6e9f7f.tar.gz
elgg-ea73090084023d4e18b68f5010c2eae2fa6e9f7f.tar.bz2
Visual upgrader.
git-svn-id: https://code.elgg.org/elgg/trunk@2345 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'upgrade.php')
-rw-r--r--upgrade.php13
1 files changed, 9 insertions, 4 deletions
diff --git a/upgrade.php b/upgrade.php
index ba979f89f..f453cd0ea 100644
--- a/upgrade.php
+++ b/upgrade.php
@@ -14,10 +14,15 @@
*/
// Include elgg engine
- require_once(dirname(__FILE__) . "/engine/start.php");
-
- if (version_upgrade_check()) {
- version_upgrade();
+ require_once(dirname(__FILE__) . "/engine/start.php");
+
+ if (get_input('upgrade') == 'upgrade') {
+ if (version_upgrade_check()) {
+ version_upgrade();
+ }
+ } else {
+ global $CONFIG;
+ echo elgg_view('settings/upgrading');
}
forward();