Allow the signature button wikitext to be overridden locally
[lhc/web/wiklou.git] / maintenance / populateRevisionLength.php
index a9fb394..10408ec 100644 (file)
@@ -33,7 +33,7 @@ require_once __DIR__ . '/Maintenance.php';
 class PopulateRevisionLength extends LoggedUpdateMaintenance {
        public function __construct() {
                parent::__construct();
-               $this->mDescription = "Populates the rev_len and ar_len fields";
+               $this->addDescription( 'Populates the rev_len and ar_len fields' );
                $this->setBatchSize( 200 );
        }
 
@@ -92,11 +92,11 @@ class PopulateRevisionLength extends LoggedUpdateMaintenance {
                        $res = $db->select(
                                $table,
                                $fields,
-                               array(
+                               [
                                        "$idCol >= $blockStart",
                                        "$idCol <= $blockEnd",
                                        "{$prefix}_len IS NULL"
-                               ),
+                               ],
                                __METHOD__
                        );
 
@@ -142,8 +142,8 @@ class PopulateRevisionLength extends LoggedUpdateMaintenance {
 
                # Update the row...
                $db->update( $table,
-                       array( "{$prefix}_len" => $content->getSize() ),
-                       array( $idCol => $row->$idCol ),
+                       [ "{$prefix}_len" => $content->getSize() ],
+                       [ $idCol => $row->$idCol ],
                        __METHOD__
                );