r76412 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76411‎ | r76412 | r76413 >
Date:21:06, 9 November 2010
Author:catrope
Status:ok
Tags:
Comment:
1.16wmf4: Merge r76411
Modified paths:
  • /branches/wmf/1.16wmf4/extensions/UsabilityInitiative/PrefSwitch (modified) (history)
  • /branches/wmf/1.16wmf4/extensions/UsabilityInitiative/PrefSwitch/PrefSwitch.hooks.php (modified) (history)
  • /branches/wmf/1.16wmf4/extensions/UsabilityInitiative/PrefSwitch/PrefSwitch.php (modified) (history)

Diff [purge]

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

Follow-up revisions

RevisionCommit summaryAuthorDate
r819391.17wmf1: Merge r76412 from 1.16wmf4catrope09:00, 11 February 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r76411Added $wgPrefSwitchShowLinks configuration to allow disabling the links in th...tparscal21:01, 9 November 2010

Status & tagging log