From: Happy-melon Date: Mon, 7 Nov 2011 22:15:05 +0000 (+0000) Subject: Follow-up r102334: odd that this minus sign (yes, copied from a diff) was actually... X-Git-Tag: 1.31.0-rc.0~26650 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=060b3572d372b7aa6384ea21be5ddccec0c82d4f;p=lhc%2Fweb%2Fwiklou.git Follow-up r102334: odd that this minus sign (yes, copied from a diff) was actually harmless. Also explicitly define a variable that would otherwise be lazily initialised to zero but about which my IDE complains. --- diff --git a/includes/specials/SpecialEditWatchlist.php b/includes/specials/SpecialEditWatchlist.php index 9fcd95eb87..ac47946685 100644 --- a/includes/specials/SpecialEditWatchlist.php +++ b/includes/specials/SpecialEditWatchlist.php @@ -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 {