Use the context language for the toc in SpecialEditWatchlist.
authorAaron <aschulz@wikimedia.org>
Wed, 22 Aug 2012 18:58:47 +0000 (11:58 -0700)
committerAaron <aschulz@wikimedia.org>
Wed, 22 Aug 2012 19:15:54 +0000 (12:15 -0700)
Change-Id: I029372346e18eb75f81eab24c7398b53701ac8ed

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