summaryrefslogtreecommitdiff
path: root/maintenance/upgrade1_5.php
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/upgrade1_5.php')
-rw-r--r--maintenance/upgrade1_5.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/maintenance/upgrade1_5.php b/maintenance/upgrade1_5.php
index dd4acaae..32634b67 100644
--- a/maintenance/upgrade1_5.php
+++ b/maintenance/upgrade1_5.php
@@ -18,6 +18,15 @@ $options = array( 'step', 'noimages' );
require_once( 'commandLine.inc' );
require_once( 'FiveUpgrade.inc' );
+echo "ATTENTION: This script is for upgrades from 1.4 to 1.5 (NOT 1.15) in very special cases.\n";
+echo "Use update.php for usual updates.\n";
+
+// Seems to confuse some people
+if ( !array_search( '--upgrade', $_SERVER['argv'] ) ) {
+ echo "Please run this script with --upgrade key to actually run the updater.\n";
+ die;
+}
+
$upgrade = new FiveUpgrade();
$step = isset( $options['step'] ) ? $options['step'] : null;
$upgrade->upgrade( $step );