Follow up r75474
authorPlatonides <platonides@users.mediawiki.org>
Wed, 27 Oct 2010 13:56:58 +0000 (13:56 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Wed, 27 Oct 2010 13:56:58 +0000 (13:56 +0000)
maintenance/update.php

index 84a1d46..57ce9aa 100644 (file)
@@ -3,6 +3,7 @@
  * Run all updaters.
  *
  * This is used when the database schema is modified and we need to apply patches.
+ * It is kept compatible with php 4 parsing so that it can give out a meaningful error.
  *
  * @file
  * @todo document
@@ -30,7 +31,7 @@ class UpdateMediaWiki extends Maintenance {
        }
 
        function getDbType() {
-               return DB_ADMIN;
+               return 2 /* Maintenance::DB_ADMIN */;
        }
 
        function execute() {