Remove the (useless) configuration option $wgVectorShowVariantName. If set to false...
authorRobin Pepermans <robin@users.mediawiki.org>
Mon, 12 Dec 2011 00:03:15 +0000 (00:03 +0000)
committerRobin Pepermans <robin@users.mediawiki.org>
Mon, 12 Dec 2011 00:03:15 +0000 (00:03 +0000)
RELEASE-NOTES-1.19
includes/DefaultSettings.php
skins/Vector.php

index 86b61c3..7d4e01e 100644 (file)
@@ -24,6 +24,7 @@ production.
   items to show by default on query pages (special pages such as Whatlinkshere).
 * (bug 32470) Increase the length of ug_group.
 * (bug 32239) Removed wgEnableTooltipsAndAccesskeys.
+* Removed $wgVectorShowVariantName.
 
 === New features in 1.19 ===
 * (bug 19838) Possibility to get all interwiki prefixes if the interwiki
index 58f1b32..9be89cf 100644 (file)
@@ -2453,11 +2453,6 @@ $wgVectorUseSimpleSearch = false;
  */
 $wgVectorUseIconWatch = false;
 
-/**
- * Show the name of the current variant as a label in the variants drop-down menu
- */
-$wgVectorShowVariantName = false;
-
 /**
  * Display user edit counts in various prominent places.
  */
index 688d6ac..b3a890e 100644 (file)
@@ -326,7 +326,7 @@ class VectorTemplate extends BaseTemplate {
         * @param $elements array
         */
        private function renderNavigation( $elements ) {
-               global $wgVectorUseSimpleSearch, $wgVectorShowVariantName;
+               global $wgVectorUseSimpleSearch;
 
                // If only one element was given, wrap it in an array, allowing more
                // flexible arguments
@@ -355,15 +355,13 @@ class VectorTemplate extends BaseTemplate {
                                case 'VARIANTS':
 ?>
 <div id="p-variants" class="vectorMenu<?php if ( count( $this->data['variant_urls'] ) == 0 ) echo ' emptyPortlet'; ?>">
-       <?php if ( $wgVectorShowVariantName ): ?>
-               <h4>
-               <?php foreach ( $this->data['variant_urls'] as $link ): ?>
-                       <?php if ( stripos( $link['attributes'], 'selected' ) !== false ): ?>
-                               <?php echo htmlspecialchars( $link['text'] ) ?>
-                       <?php endif; ?>
-               <?php endforeach; ?>
-               </h4>
-       <?php endif; ?>
+       <h4>
+       <?php foreach ( $this->data['variant_urls'] as $link ): ?>
+               <?php if ( stripos( $link['attributes'], 'selected' ) !== false ): ?>
+                       <?php echo htmlspecialchars( $link['text'] ) ?>
+               <?php endif; ?>
+       <?php endforeach; ?>
+       </h4>
        <h5><span><?php $this->msg( 'variants' ) ?></span><a href="#"></a></h5>
        <div class="menu">
                <ul<?php $this->html( 'userlangattributes' ) ?>>