Page MenuHomePhabricator

bug16495.txt

Authored By
bzimport
Nov 21 2014, 10:24 PM
Size
1 KB
Referenced Files
None
Subscribers
None

bug16495.txt

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php
===================================================================
--- trunk/extensions/FlaggedRevs/FlaggedRevs.php (revision 44039)
+++ trunk/extensions/FlaggedRevs/FlaggedRevs.php (working copy)
@@ -234,6 +234,13 @@
# How many pages count as a backlog?
$wgFlaggedRevsBacklog = 2000;
+# Does FlaggedRevs page patrolling override core implementation?
+# Normally it makes sense to automatically patrol all sighted
+# revisions, and not to patrol revisions that can't be sighted.
+# Disable this if, for instance, FlaggedRevs doesn't cover a
+# whole namespace.
+$wgFlaggedRevsOverridePatrol = true;
+
# Flagged revisions are always visible to users with rights below.
# Use '*' for non-user accounts.
$wgFlaggedRevsVisible = array();
Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php
===================================================================
--- trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php (revision 44039)
+++ trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php (working copy)
@@ -6,12 +6,15 @@
* Remove 'patrol' and 'autopatrol' rights. Reviewing revisions will patrol them as well.
*/
public static function stripPatrolRights( $user, &$rights ) {
+ global $wgFlaggedRevsOverridePatrol;
+ if ($wgFlaggedRevsOverridePatrol) {
# Use only our extension mechanisms
foreach( $rights as $n => $right ) {
if( $right == 'patrol' || $right == 'autopatrol' ) {
unset($rights[$n]);
}
}
+ }
return true;
}

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4835
Default Alt Text
bug16495.txt (1 KB)

Event Timeline