Index: branches/wmf/1.16wmf4/extensions/UsabilityInitiative/PrefSwitch/PrefSwitch.php |
— | — | @@ -19,6 +19,7 @@ |
20 | 20 | /* Configuration */ |
21 | 21 | |
22 | 22 | $wgPrefSwitchStyleVersion = 1; |
| 23 | +$wgPrefSwitchShowLinks = true; |
23 | 24 | |
24 | 25 | // Preferences to set when users switch prefs |
25 | 26 | // array( |
Index: branches/wmf/1.16wmf4/extensions/UsabilityInitiative/PrefSwitch/PrefSwitch.hooks.php |
— | — | @@ -16,7 +16,11 @@ |
17 | 17 | return true; |
18 | 18 | } |
19 | 19 | public static function personalUrls( &$personal_urls, &$title ) { |
20 | | - global $wgUser, $wgRequest; |
| 20 | + global $wgUser, $wgRequest, $wgPrefSwitchShowLinks; |
| 21 | + |
| 22 | + if ( !$wgPrefSwitchShowLinks ) { |
| 23 | + return true; |
| 24 | + } |
21 | 25 | // Loads opt-in messages |
22 | 26 | wfLoadExtensionMessages( 'PrefSwitchLink' ); |
23 | 27 | // Figure out the orgin to include in the link |
Property changes on: branches/wmf/1.16wmf4/extensions/UsabilityInitiative/PrefSwitch |
___________________________________________________________________ |
Modified: svn:mergeinfo |
24 | 28 | Merged /branches/usability-initiative-1_16/PrefSwitch:r76411 |