User::isAnon() via User::isLoggedIn() has unexpected behavior from an optimization...
[lhc/web/wiklou.git] / maintenance / cleanupCaps.php
index afcd1b3..77a95ff 100644 (file)
@@ -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 );
@@ -155,4 +153,4 @@ $ns = isset( $options['namespace'] ) ? $options['namespace'] : 0;
 $caps = new CapsCleanup( isset( $options['dry-run'] ), $ns );
 $caps->cleanup();
 
-?>
+