From 060b3572d372b7aa6384ea21be5ddccec0c82d4f Mon Sep 17 00:00:00 2001 From: Happy-melon Date: Mon, 7 Nov 2011 22:15:05 +0000 Subject: [PATCH] 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. --- includes/specials/SpecialEditWatchlist.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- 2.20.1