Revert "Use the context language for the toc in SpecialEditWatchlist."
authorSiebrand <siebrand@wikimedia.org>
Wed, 22 Aug 2012 20:47:36 +0000 (20:47 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 22 Aug 2012 20:47:36 +0000 (20:47 +0000)
This reverts commit c85016e27d789bc5990dddb48d02bda3d85f11a1

This change is redundant, since the root cause was fixed in
Change I333021ee and I66fb2d11

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;
                }