Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F2304
diff.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, 8:49 PM
2014-11-21 20:49:37 (UTC+0)
Size
955 B
Referenced Files
None
Subscribers
None
diff.txt
View Options
--- Article.new.php 2005-12-17 01:15:49.000000000 +0100
+++ phase3/includes/Article.php 2005-12-17 01:18:29.000000000 +0100
@@ -2025,7 +2025,7 @@
* Revert a modification
*/
function rollback() {
- global $wgUser, $wgOut, $wgRequest;
+ global $wgUser, $wgOut, $wgRequest, $wgUseRCPatrol;
$fname = 'Article::rollback';
if ( ! $wgUser->isAllowed('rollback') ) {
@@ -2098,12 +2098,19 @@
return;
}
+ $set = array();
if ( $bot ) {
# Mark all reverted edits as bot
- $dbw->update( 'recentchanges',
- array( /* SET */
- 'rc_bot' => 1
- ), array( /* WHERE */
+ $set['rc_bot'] = 1;
+ }
+ if ( $wgUseRCPatrol ) {
+ # Mark all reverted edits as patrolled
+ $set['rc_patrolled'] = 1;
+ }
+
+ if ( $set ) {
+ $dbw->update( 'recentchanges', $set,
+ array( /* WHERE */
'rc_cur_id' => $current->getPage(),
'rc_user_text' => $current->getUserText(),
"rc_timestamp > '{$s->rev_timestamp}'",
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1880
Default Alt Text
diff.txt (955 B)
Attached To
Mode
T5493: changes not marked as patrolled on sysop revert
Attached
Detach File
Event Timeline
Log In to Comment