From: umherirrender Date: Mon, 26 May 2014 19:09:25 +0000 (+0200) Subject: Use language from context in Skin::subPageSubtitle X-Git-Tag: 1.31.0-rc.0~15572^2 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28?a=commitdiff_plain;h=6587ee514a5c3f5fb1dca4d71b2bda74c9b0b016;p=lhc%2Fweb%2Fwiklou.git Use language from context in Skin::subPageSubtitle Change-Id: Ia6cff8aa9e0b12215839f8b9c5a64a09150d4002 --- diff --git a/includes/Skin.php b/includes/Skin.php index c428079557..1664c913bd 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -721,7 +721,6 @@ abstract class Skin extends ContextSource { * @return string */ function subPageSubtitle() { - global $wgLang; $out = $this->getOutput(); $subpages = ''; @@ -737,6 +736,7 @@ abstract class Skin extends ContextSource { $c = 0; $growinglink = ''; $display = ''; + $lang = $this->getLanguage(); foreach ( $links as $link ) { $growinglink .= $link; @@ -752,7 +752,7 @@ abstract class Skin extends ContextSource { $c++; if ( $c > 1 ) { - $subpages .= $wgLang->getDirMarkEntity() . $this->msg( 'pipe-separator' )->escaped(); + $subpages .= $lang->getDirMarkEntity() . $this->msg( 'pipe-separator' )->escaped(); } else { $subpages .= '< '; }