From 6587ee514a5c3f5fb1dca4d71b2bda74c9b0b016 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Mon, 26 May 2014 21:09:25 +0200 Subject: [PATCH] Use language from context in Skin::subPageSubtitle Change-Id: Ia6cff8aa9e0b12215839f8b9c5a64a09150d4002 --- includes/Skin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 .= '< '; } -- 2.20.1