Index: branches/usability-initiative-1_16/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/usability-initiative-1_16/PrefSwitch/PrefSwitch.hooks.php |
— | — | @@ -21,7 +21,11 @@ |
22 | 22 | } |
23 | 23 | |
24 | 24 | public static function personalUrls( &$personal_urls, &$title ) { |
25 | | - global $wgUser, $wgRequest; |
| 25 | + global $wgUser, $wgRequest, $wgPrefSwitchShowLinks; |
| 26 | + |
| 27 | + if ( !$wgPrefSwitchShowLinks ) { |
| 28 | + return true; |
| 29 | + } |
26 | 30 | // Loads opt-in messages |
27 | 31 | wfLoadExtensionMessages( 'PrefSwitchLink' ); |
28 | 32 | // Figure out the orgin to include in the link |