diff options
Diffstat (limited to 'maintenance/cleanupCaps.php')
-rw-r--r-- | maintenance/cleanupCaps.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/maintenance/cleanupCaps.php b/maintenance/cleanupCaps.php index afcd1b33..5a61bf23 100644 --- a/maintenance/cleanupCaps.php +++ b/maintenance/cleanupCaps.php @@ -25,8 +25,7 @@ * http://www.gnu.org/copyleft/gpl.html * * @author Brion Vibber <brion at pobox.com> - * @package MediaWiki - * @subpackage maintenance + * @addtogroup maintenance */ $options = array( 'dry-run' ); @@ -100,7 +99,7 @@ class CapsCleanup extends FiveUpgrade { $result = $this->dbr->query( $sql, $fname ); while( $row = $this->dbr->fetchObject( $result ) ) { - $updated = call_user_func( $callback, $row ); + call_user_func( $callback, $row ); } $this->log( "Finished $table... $this->updated of $this->processed rows updated" ); $this->dbr->freeResult( $result ); @@ -137,7 +136,6 @@ class CapsCleanup extends FiveUpgrade { if( $row->page_namespace == $this->namespace ) { $talk = $target->getTalkPage(); - $xrow = $row; $row->page_namespace = $talk->getNamespace(); if( $talk->exists() ) { return $this->processPage( $row ); |