r97678 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r97677‎ | r97678 | r97679 >
Date:22:53, 20 September 2011
Author:reedy
Status:ok
Tags:
Comment:
REL1_18 MFT r93757, r97647
Modified paths:
  • /branches/REL1_18/extensions/FlaggedRevs/FlaggedRevs.php (modified) (history)
  • /branches/REL1_18/extensions/PrefSwitch/PrefSwitch.hooks.php (modified) (history)
  • /branches/REL1_18/extensions/PrefSwitch/PrefSwitch.php (modified) (history)

Diff [purge]

Index: branches/REL1_18/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(
Index: branches/REL1_18/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/REL1_18/extensions/FlaggedRevs/FlaggedRevs.php
@@ -346,7 +346,7 @@
347347 # ReviewedPages for API
348348 $wgAutoloadClasses['ApiQueryReviewedpages'] = $apiReportDir . 'ApiQueryReviewedpages.php';
349349 # ConfiguredPages for API
350 -$wgAutoloadClasses['ApiQueryConfiguredpages'] = $apiReportDir . 'ApiQueryConfiguredpages.php';
 350+$wgAutoloadClasses['ApiQueryConfiguredpages'] = $apiReportDir . 'ApiQueryConfiguredPages.php';
351351 # Flag metadata for pages for API
352352 $wgAutoloadClasses['ApiQueryFlagged'] = $apiReportDir . 'ApiQueryFlagged.php';
353353 $wgAPIPropModules['flagged'] = 'ApiQueryFlagged';

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
r97647Fix casing of ApiQueryConfiguredPages in Flagged Revs...reedy18:01, 20 September 2011

Status & tagging log