Use language from context in Skin::subPageSubtitle
authorumherirrender <umherirrender_de.wp@web.de>
Mon, 26 May 2014 19:09:25 +0000 (21:09 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Mon, 26 May 2014 19:09:25 +0000 (21:09 +0200)
Change-Id: Ia6cff8aa9e0b12215839f8b9c5a64a09150d4002

includes/Skin.php

index c428079..1664c91 100644 (file)
@@ -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 .= '&lt; ';
                                                }