r22439 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22438‎ | r22439 | r22440 >
Date:21:30, 25 May 2007
Author:aaron
Status:old
Tags:
Comment:
*More tab cleanup
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php
@@ -97,7 +97,7 @@
9898 $wgGroupPermissions['reviewer']['review'] = true;
9999
100100 # 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);
102102
103103 # What icons to display
104104
@@ -667,8 +667,8 @@
668668 * Do the current URL params allow for overriding by stable revisions?
669669 */
670670 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() ||
673673 $wgRequest->getVal('oldid') || $wgRequest->getVal('diff') || $wgRequest->getIntOrNull('stable')===0 );
674674 }
675675
@@ -862,8 +862,8 @@
863863 'href' => $title->getLocalUrl( 'stable=0' )
864864 );
865865 }
866 - $new_actions[$action] = $data;
867 - $counter++;
 866+ $new_actions[$action] = $data;
 867+ $counter++;
868868 }
869869 # Reset static array
870870 $content_actions = $new_actions;
@@ -879,8 +879,8 @@
880880 'href' => $title->getLocalUrl( 'stable=0' )
881881 );
882882 }
883 - $new_actions[$action] = $data;
884 - $counter++;
 883+ $new_actions[$action] = $data;
 884+ $counter++;
885885 }
886886 # Reset static array
887887 $content_actions = $new_actions;
@@ -896,8 +896,8 @@
897897 'href' => $title->getLocalUrl( 'stable=0' )
898898 );
899899 }
900 - $new_actions[$action] = $data;
901 - $counter++;
 900+ $new_actions[$action] = $data;
 901+ $counter++;
902902 }
903903 # Reset static array
904904 $content_actions = $new_actions;