Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php |
— | — | @@ -97,7 +97,7 @@ |
98 | 98 | $wgGroupPermissions['reviewer']['review'] = true; |
99 | 99 | |
100 | 100 | # Define when users get automatically promoted to editors |
101 | | -$wgFlaggedRevsAutopromote = array('days' => 60, 'edits' => 1000, 'email' => true); |
| 101 | +$wgFlaggedRevsAutopromote = array('days' => 60, 'edits' => 500, 'email' => true); |
102 | 102 | |
103 | 103 | # What icons to display |
104 | 104 | |
— | — | @@ -667,8 +667,8 @@ |
668 | 668 | * Do the current URL params allow for overriding by stable revisions? |
669 | 669 | */ |
670 | 670 | function pageOverride() { |
671 | | - global $wgFlaggedRevsAnonOnly, $wgUser, $wgRequest, $action; |
672 | | - return !( ( $wgFlaggedRevsAnonOnly && !$wgUser->isAnon() ) || $action !='view' || |
| 671 | + global $wgTitle, $wgFlaggedRevsAnonOnly, $wgUser, $wgRequest, $action; |
| 672 | + return !( ($wgFlaggedRevsAnonOnly && !$wgUser->isAnon()) || $action !='view' || !$wgTitle->isContentPage() || |
673 | 673 | $wgRequest->getVal('oldid') || $wgRequest->getVal('diff') || $wgRequest->getIntOrNull('stable')===0 ); |
674 | 674 | } |
675 | 675 | |
— | — | @@ -862,8 +862,8 @@ |
863 | 863 | 'href' => $title->getLocalUrl( 'stable=0' ) |
864 | 864 | ); |
865 | 865 | } |
866 | | - $new_actions[$action] = $data; |
867 | | - $counter++; |
| 866 | + $new_actions[$action] = $data; |
| 867 | + $counter++; |
868 | 868 | } |
869 | 869 | # Reset static array |
870 | 870 | $content_actions = $new_actions; |
— | — | @@ -879,8 +879,8 @@ |
880 | 880 | 'href' => $title->getLocalUrl( 'stable=0' ) |
881 | 881 | ); |
882 | 882 | } |
883 | | - $new_actions[$action] = $data; |
884 | | - $counter++; |
| 883 | + $new_actions[$action] = $data; |
| 884 | + $counter++; |
885 | 885 | } |
886 | 886 | # Reset static array |
887 | 887 | $content_actions = $new_actions; |
— | — | @@ -896,8 +896,8 @@ |
897 | 897 | 'href' => $title->getLocalUrl( 'stable=0' ) |
898 | 898 | ); |
899 | 899 | } |
900 | | - $new_actions[$action] = $data; |
901 | | - $counter++; |
| 900 | + $new_actions[$action] = $data; |
| 901 | + $counter++; |
902 | 902 | } |
903 | 903 | # Reset static array |
904 | 904 | $content_actions = $new_actions; |