http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97678
Revision: 97678
Author: reedy
Date: 2011-09-20 22:53:49 +0000 (Tue, 20 Sep 2011)
Log Message:
-----------
REL1_18 MFT r93757, r97647
Modified Paths:
--------------
branches/REL1_18/extensions/FlaggedRevs/FlaggedRevs.php
branches/REL1_18/extensions/PrefSwitch/PrefSwitch.hooks.php
branches/REL1_18/extensions/PrefSwitch/PrefSwitch.php
Modified: branches/REL1_18/extensions/FlaggedRevs/FlaggedRevs.php
===================================================================
--- branches/REL1_18/extensions/FlaggedRevs/FlaggedRevs.php 2011-09-20
22:42:13 UTC (rev 97677)
+++ branches/REL1_18/extensions/FlaggedRevs/FlaggedRevs.php 2011-09-20
22:53:49 UTC (rev 97678)
@@ -346,7 +346,7 @@
# ReviewedPages for API
$wgAutoloadClasses['ApiQueryReviewedpages'] = $apiReportDir .
'ApiQueryReviewedpages.php';
# ConfiguredPages for API
-$wgAutoloadClasses['ApiQueryConfiguredpages'] = $apiReportDir .
'ApiQueryConfiguredpages.php';
+$wgAutoloadClasses['ApiQueryConfiguredpages'] = $apiReportDir .
'ApiQueryConfiguredPages.php';
# Flag metadata for pages for API
$wgAutoloadClasses['ApiQueryFlagged'] = $apiReportDir . 'ApiQueryFlagged.php';
$wgAPIPropModules['flagged'] = 'ApiQueryFlagged';
Modified: branches/REL1_18/extensions/PrefSwitch/PrefSwitch.hooks.php
===================================================================
--- branches/REL1_18/extensions/PrefSwitch/PrefSwitch.hooks.php 2011-09-20
22:42:13 UTC (rev 97677)
+++ branches/REL1_18/extensions/PrefSwitch/PrefSwitch.hooks.php 2011-09-20
22:53:49 UTC (rev 97678)
@@ -42,7 +42,10 @@
* PersonalUrls hook
*/
public static function personalUrls( &$personal_urls, &$title ) {
- global $wgUser, $wgRequest;
+ global $wgUser, $wgRequest, $wgPrefSwitchShowLinks;
+ if(!$wgPrefSwitchShowLinks) {
+ return true;
+ }
// Figure out the orgin to include in the link
$fromquery = array();
Modified: branches/REL1_18/extensions/PrefSwitch/PrefSwitch.php
===================================================================
--- branches/REL1_18/extensions/PrefSwitch/PrefSwitch.php 2011-09-20
22:42:13 UTC (rev 97677)
+++ branches/REL1_18/extensions/PrefSwitch/PrefSwitch.php 2011-09-20
22:53:49 UTC (rev 97678)
@@ -15,6 +15,9 @@
$wgPrefSwitchStyleVersion = 1;
+// Set this to true to show the "New features" link in the top bar
+$wgPrefSwitchShowLinks = false;
+
// Preferences to set when users switch prefs
$wgPrefSwitchPrefs = array(
'off' => array(
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs