updateCollation.php: fix PHP error
authorOstrzyciel <magwac69@gmail.com>
Tue, 25 Feb 2020 17:13:09 +0000 (18:13 +0100)
committerReedy <reedy@wikimedia.org>
Tue, 25 Feb 2020 17:34:51 +0000 (17:34 +0000)
Currently the updateCollation maintenance script throws an error
when ran, as it calls MediaWikiServices before it's initialized.
See the phab task for more details.

Bug: T246127
Change-Id: Ib9d6b485b55760897ff5152b5d6f22b0d6a36daa

maintenance/updateCollation.php

index 9bcba7e..86e3f5e 100644 (file)
@@ -44,12 +44,11 @@ class UpdateCollation extends Maintenance {
        public function __construct() {
                parent::__construct();
 
-               $categoryCollation = $this->getConfig()->get( 'CategoryCollation' );
                $this->addDescription( <<<TEXT
 This script will find all rows in the categorylinks table whose collation is
-out-of-date (cl_collation != '$categoryCollation') and repopulate cl_sortkey
-using the page title and cl_sortkey_prefix.  If all collations are
-up-to-date, it will do nothing.
+out-of-date (cl_collation is not the same as \$wgCategoryCollation) and
+repopulate cl_sortkey using the page title and cl_sortkey_prefix. If all
+collations are up-to-date, it will do nothing.
 TEXT
                );