r97640 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97639‎ | r97640 | r97641 >
Date:16:13, 20 September 2011
Author:catrope
Status:ok
Tags:
Comment:
1.18wmf1: MFT r93757
Modified paths:
  • /branches/wmf/1.18wmf1/extensions/PrefSwitch/PrefSwitch.hooks.php (modified) (history)
  • /branches/wmf/1.18wmf1/extensions/PrefSwitch/PrefSwitch.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/extensions/PrefSwitch/PrefSwitch.hooks.php
@@ -42,7 +42,10 @@
4343 * PersonalUrls hook
4444 */
4545 public static function personalUrls( &$personal_urls, &$title ) {
46 - global $wgUser, $wgRequest;
 46+ global $wgUser, $wgRequest, $wgPrefSwitchShowLinks;
 47+ if(!$wgPrefSwitchShowLinks) {
 48+ return true;
 49+ }
4750
4851 // Figure out the orgin to include in the link
4952 $fromquery = array();
Index: branches/wmf/1.18wmf1/extensions/PrefSwitch/PrefSwitch.php
@@ -15,6 +15,9 @@
1616
1717 $wgPrefSwitchStyleVersion = 1;
1818
 19+// Set this to true to show the "New features" link in the top bar
 20+$wgPrefSwitchShowLinks = false;
 21+
1922 // Preferences to set when users switch prefs
2023 $wgPrefSwitchPrefs = array(
2124 'off' => array(

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r937571) commit WMF hack that makes it possible to hide the "New features" link...erik14:52, 2 August 2011

Status & tagging log