From a1789ddde42033f1b05cc4929491214ee6e79383 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 17 Dec 2015 09:15:42 +0100 Subject: Update to MediaWiki 1.26.0 --- skins/Vector/VectorTemplate.php | 124 +++++++++++++--------------------------- 1 file changed, 41 insertions(+), 83 deletions(-) (limited to 'skins/Vector/VectorTemplate.php') diff --git a/skins/Vector/VectorTemplate.php b/skins/Vector/VectorTemplate.php index fa3de5e0..ec2c87aa 100644 --- a/skins/Vector/VectorTemplate.php +++ b/skins/Vector/VectorTemplate.php @@ -87,6 +87,10 @@ class VectorTemplate extends BaseTemplate { $this->data['personal_urls'] = array_reverse( $this->data['personal_urls'] ); } + + $this->data['pageLanguage'] = + $this->getSkin()->getTitle()->getPageViewLanguage()->getHtmlCode(); + // Output HTML Page $this->html( 'headelement' ); ?> @@ -106,12 +110,14 @@ class VectorTemplate extends BaseTemplate { if ( is_callable( array( $this, 'getIndicators' ) ) ) { echo $this->getIndicators(); } + // Loose comparison with '!=' is intentional, to catch null and false too, but not '0' + if ( $this->data['title'] != '' ) { ?> -

html( 'title' ) ?>

+

html( 'title' ) + ?>

+ html( 'prebodyhtml' ) ?>
-
html( 'userlangattributes' ) - ?>>html( 'subtitle' ) ?>
+
html( 'userlangattributes' ) ?>>html( 'subtitle' ) + ?>
data['undelete'] ) { ?> @@ -142,13 +148,12 @@ class VectorTemplate extends BaseTemplate { msg( 'jumpto' ) ?> msg( 'jumptonavigation' ) - ?>msg( 'comma-separator' ) - ?> + ?>msg( 'comma-separator' ) ?> msg( 'jumptosearch' ) ?>
- html( 'bodycontent' ) ?> html( 'bodycontent' ); + if ( $this->data['printfooter'] ) { ?>
@@ -156,23 +161,13 @@ class VectorTemplate extends BaseTemplate {
- data['catlinks'] ) { - ?> - html( 'catlinks' ); - ?> - - data['dataAfterContent'] ) { - ?> - html( 'dataAfterContent' ); - ?> -
@@ -204,19 +199,11 @@ class VectorTemplate extends BaseTemplate { getFooterLinks() as $category => $links ) { ?> -