Merge "Revert "Use the context language for the toc in SpecialEditWatchlist.""
authorDemon <chadh@wikimedia.org>
Fri, 24 Aug 2012 13:51:51 +0000 (13:51 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 24 Aug 2012 13:51:51 +0000 (13:51 +0000)
includes/specials/SpecialEditWatchlist.php

index 2bea3a3..23cd9aa 100644 (file)
@@ -510,7 +510,7 @@ class SpecialEditWatchlist extends UnlistedSpecialPage {
                                $this->toc .= Linker::tocLine( "editwatchlist-{$data['section']}", $nsText,
                                        $this->getLanguage()->formatNum( ++$tocLength ), 1 ) . Linker::tocLineEnd();
                        }
-                       $this->toc = Linker::tocList( $this->toc, $this->getLanguage()->getCode() );
+                       $this->toc = Linker::tocList( $this->toc );
                } else {
                        $this->toc = false;
                }