From c85016e27d789bc5990dddb48d02bda3d85f11a1 Mon Sep 17 00:00:00 2001 From: Aaron Date: Wed, 22 Aug 2012 11:58:47 -0700 Subject: [PATCH] Use the context language for the toc in SpecialEditWatchlist. Change-Id: I029372346e18eb75f81eab24c7398b53701ac8ed --- includes/specials/SpecialEditWatchlist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialEditWatchlist.php b/includes/specials/SpecialEditWatchlist.php index 23cd9aa679..2bea3a3b88 100644 --- a/includes/specials/SpecialEditWatchlist.php +++ b/includes/specials/SpecialEditWatchlist.php @@ -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; } -- 2.20.1