Page MenuHomePhabricator
Authored By
bzimport
Nov 21 2014, 8:49 PM
Size
955 B
Referenced Files
None
Subscribers
None

diff.txt

--- 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

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1880
Default Alt Text
diff.txt (955 B)

Event Timeline