Index: branches/wmf/1.18wmf1/extensions/PrefSwitch/PrefSwitch.hooks.php |
— | — | @@ -42,7 +42,10 @@ |
43 | 43 | * PersonalUrls hook |
44 | 44 | */ |
45 | 45 | public static function personalUrls( &$personal_urls, &$title ) { |
46 | | - global $wgUser, $wgRequest; |
| 46 | + global $wgUser, $wgRequest, $wgPrefSwitchShowLinks; |
| 47 | + if(!$wgPrefSwitchShowLinks) { |
| 48 | + return true; |
| 49 | + } |
47 | 50 | |
48 | 51 | // Figure out the orgin to include in the link |
49 | 52 | $fromquery = array(); |
Index: branches/wmf/1.18wmf1/extensions/PrefSwitch/PrefSwitch.php |
— | — | @@ -15,6 +15,9 @@ |
16 | 16 | |
17 | 17 | $wgPrefSwitchStyleVersion = 1; |
18 | 18 | |
| 19 | +// Set this to true to show the "New features" link in the top bar |
| 20 | +$wgPrefSwitchShowLinks = false; |
| 21 | + |
19 | 22 | // Preferences to set when users switch prefs |
20 | 23 | $wgPrefSwitchPrefs = array( |
21 | 24 | 'off' => array( |