Follow-up r102334: odd that this minus sign (yes, copied from a diff) was actually...
authorHappy-melon <happy-melon@users.mediawiki.org>
Mon, 7 Nov 2011 22:15:05 +0000 (22:15 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Mon, 7 Nov 2011 22:15:05 +0000 (22:15 +0000)
includes/specials/SpecialEditWatchlist.php

index 9fcd95e..ac47946 100644 (file)
@@ -379,6 +379,7 @@ class SpecialEditWatchlist extends UnlistedSpecialPage {
                global $wgContLang;
 
                $fields = array();
+               $count = 0;
 
                $haveInvalidNamespaces = false;
                foreach( $this->getWatchlistInfo() as $namespace => $pages ){
@@ -413,7 +414,7 @@ class SpecialEditWatchlist extends UnlistedSpecialPage {
                                $nsText = $ns == NS_MAIN
                                        ? wfMsgHtml( 'blanknamespace' )
                                        : htmlspecialchars( $wgContLang->getFormattedNsText( $ns ) );
-                               -$this->toc .= Linker::tocLine( "mw-htmlform-{$data['section']}", $nsText, ++$tocLength, 1 ) . Linker::tocLineEnd();
+                               $this->toc .= Linker::tocLine( "mw-htmlform-{$data['section']}", $nsText, ++$tocLength, 1 ) . Linker::tocLineEnd();
                        }
                        $this->toc = Linker::tocList( $this->toc );
                } else {