http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97640

Revision: 97640
Author:   catrope
Date:     2011-09-20 16:13:00 +0000 (Tue, 20 Sep 2011)
Log Message:
-----------
1.18wmf1: MFT r93757

Modified Paths:
--------------
    branches/wmf/1.18wmf1/extensions/PrefSwitch/PrefSwitch.hooks.php
    branches/wmf/1.18wmf1/extensions/PrefSwitch/PrefSwitch.php

Modified: branches/wmf/1.18wmf1/extensions/PrefSwitch/PrefSwitch.hooks.php
===================================================================
--- branches/wmf/1.18wmf1/extensions/PrefSwitch/PrefSwitch.hooks.php    
2011-09-20 16:03:06 UTC (rev 97639)
+++ branches/wmf/1.18wmf1/extensions/PrefSwitch/PrefSwitch.hooks.php    
2011-09-20 16:13:00 UTC (rev 97640)
@@ -42,7 +42,10 @@
         * PersonalUrls hook
         */
        public static function personalUrls( &$personal_urls, &$title ) {
-               global $wgUser, $wgRequest;
+               global $wgUser, $wgRequest, $wgPrefSwitchShowLinks;
+               if(!$wgPrefSwitchShowLinks) {
+                       return true;            
+               }
                
                // Figure out the orgin to include in the link
                $fromquery = array();

Modified: branches/wmf/1.18wmf1/extensions/PrefSwitch/PrefSwitch.php
===================================================================
--- branches/wmf/1.18wmf1/extensions/PrefSwitch/PrefSwitch.php  2011-09-20 
16:03:06 UTC (rev 97639)
+++ branches/wmf/1.18wmf1/extensions/PrefSwitch/PrefSwitch.php  2011-09-20 
16:13:00 UTC (rev 97640)
@@ -15,6 +15,9 @@
 
 $wgPrefSwitchStyleVersion = 1;
 
+// Set this to true to show the "New features" link in the top bar
+$wgPrefSwitchShowLinks = false;
+
 // Preferences to set when users switch prefs
 $wgPrefSwitchPrefs = array(
        'off' => array(


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to