Merge "Use the context language for the toc in SpecialEditWatchlist."
authorCatrope <roan.kattouw@gmail.com>
Wed, 22 Aug 2012 19:18:44 +0000 (19:18 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 22 Aug 2012 19:18:44 +0000 (19:18 +0000)
includes/specials/SpecialEditWatchlist.php

index 23cd9aa..2bea3a3 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->toc = Linker::tocList( $this->toc, $this->getLanguage()->getCode() );
                } else {
                        $this->toc = false;
                }