Switch Signature of WatchedItemStore::addWatchBatch
[lhc/web/wiklou.git] / maintenance / compareParserCache.php
index 98441b6..245b613 100644 (file)
@@ -27,7 +27,7 @@ require_once __DIR__ . '/Maintenance.php';
 class CompareParserCache extends Maintenance {
        public function __construct() {
                parent::__construct();
-               $this->mDescription = "Parse random pages and compare output to cache.";
+               $this->addDescription( 'Parse random pages and compare output to cache.' );
                $this->addOption( 'namespace', 'Page namespace number', true, true );
                $this->addOption( 'maxpages', 'Number of pages to try', true, true );
        }
@@ -43,15 +43,15 @@ class CompareParserCache extends Maintenance {
                $withdiff = 0;
                while ( $pages-- > 0 ) {
                        $row = $dbr->selectRow( 'page', '*',
-                               array(
+                               [
                                        'page_namespace' => $this->getOption( 'namespace' ),
                                        'page_is_redirect' => 0,
                                        'page_random >= ' . wfRandom()
-                               ),
+                               ],
                                __METHOD__,
-                               array(
+                               [
                                        'ORDER BY' => 'page_random',
-                               )
+                               ]
                        );
 
                        if ( !$row ) {