Index: branches/REL1_18/extensions/PrefSwitch/PrefSwitch.php |
— | — | @@ -15,6 +15,9 @@ |
16 | 16 | |
17 | 17 | $wgPrefSwitchStyleVersion = 1; |
18 | 18 | |
| 19 | +// Set this to true to show the "New features" link in the top bar |
| 20 | +$wgPrefSwitchShowLinks = false; |
| 21 | + |
19 | 22 | // Preferences to set when users switch prefs |
20 | 23 | $wgPrefSwitchPrefs = array( |
21 | 24 | 'off' => array( |
Index: branches/REL1_18/extensions/PrefSwitch/PrefSwitch.hooks.php |
— | — | @@ -42,7 +42,10 @@ |
43 | 43 | * PersonalUrls hook |
44 | 44 | */ |
45 | 45 | public static function personalUrls( &$personal_urls, &$title ) { |
46 | | - global $wgUser, $wgRequest; |
| 46 | + global $wgUser, $wgRequest, $wgPrefSwitchShowLinks; |
| 47 | + if(!$wgPrefSwitchShowLinks) { |
| 48 | + return true; |
| 49 | + } |
47 | 50 | |
48 | 51 | // Figure out the orgin to include in the link |
49 | 52 | $fromquery = array(); |
Index: branches/REL1_18/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -346,7 +346,7 @@ |
347 | 347 | # ReviewedPages for API |
348 | 348 | $wgAutoloadClasses['ApiQueryReviewedpages'] = $apiReportDir . 'ApiQueryReviewedpages.php'; |
349 | 349 | # ConfiguredPages for API |
350 | | -$wgAutoloadClasses['ApiQueryConfiguredpages'] = $apiReportDir . 'ApiQueryConfiguredpages.php'; |
| 350 | +$wgAutoloadClasses['ApiQueryConfiguredpages'] = $apiReportDir . 'ApiQueryConfiguredPages.php'; |
351 | 351 | # Flag metadata for pages for API |
352 | 352 | $wgAutoloadClasses['ApiQueryFlagged'] = $apiReportDir . 'ApiQueryFlagged.php'; |
353 | 353 | $wgAPIPropModules['flagged'] = 'ApiQueryFlagged'; |