Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F5274
bug16495.txt
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 10:24 PM
2014-11-21 22:24:41 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
bug16495.txt
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4835
Default Alt Text
bug16495.txt (1 KB)
Attached To
Mode
T18495: FlaggedRevs should not unavoidably disable core RC patrolling
Attached
Detach File
Event Timeline
Log In to Comment