Linker: Don't use Title::setFragment()
[lhc/web/wiklou.git] / maintenance / updateDoubleWidthSearch.php
index 5c21b40..cb2f125 100644 (file)
@@ -34,7 +34,7 @@ class UpdateDoubleWidthSearch extends Maintenance {
 
        public function __construct() {
                parent::__construct();
-               $this->mDescription = "Script to normalize double-byte latin UTF-8 characters";
+               $this->addDescription( 'Script to normalize double-byte latin UTF-8 characters' );
                $this->addOption( 'q', 'quiet', false, true );
                $this->addOption(
                        'l',
@@ -57,7 +57,7 @@ class UpdateDoubleWidthSearch extends Maintenance {
                }
 
                $res = $this->findRows( $dbw );
-               $this->updateSearchIndex( $maxLockTime, array( $this, 'searchIndexUpdateCallback' ), $dbw, $res );
+               $this->updateSearchIndex( $maxLockTime, [ $this, 'searchIndexUpdateCallback' ], $dbw, $res );
 
                $this->output( "Done\n" );
        }