Index: trunk/extensions/Push/Push_Settings.php |
— | — | @@ -22,3 +22,5 @@ |
23 | 23 | |
24 | 24 | $wgGroupPermissions['*']['push'] = true; |
25 | 25 | $wgGroupPermissions['sysop']['pushadmin'] = true; |
| 26 | + |
| 27 | +$egPushShowTab = true; |
Index: trunk/extensions/Push/includes/Push_Tab.php |
— | — | @@ -42,10 +42,13 @@ |
43 | 43 | * MW 1.16 - will possibly be called for additional skins later |
44 | 44 | */ |
45 | 45 | public static function displayTab2( $obj, &$links ) { |
| 46 | + global $egPushShowTab; |
| 47 | + |
46 | 48 | // The old '$content_actions' array is thankfully just a sub-array of this one |
47 | | - $views_links = $links['views']; |
| 49 | + $views_links = $links[$egPushShowTab ? 'views' : 'actions']; |
48 | 50 | self::displayTab( $obj, $views_links ); |
49 | | - $links['views'] = $views_links; |
| 51 | + $links[$egPushShowTab ? 'views' : 'actions'] = $views_links; |
| 52 | + |
50 | 53 | return true; |
51 | 54 | } |
52 | 55 | |