* Removed FulltextStoplist.php, no longer used (was for MySQL 3.x workaround)
* (bug 4298) Include rc_id on enhanced RC singleton diff links for patrolling
* Did some refactoring on ChangesList.php merging dupe code
+* (bug 1586) Fix interwiki generator for wikimedia obscure domains
+* (bug 3493) Mark edits patrolled when they are reverted
+ patch by Leon Planken
=== Caveats ===
* Revert a modification
*/
function rollback() {
- global $wgUser, $wgOut, $wgRequest;
+ global $wgUser, $wgOut, $wgRequest, $wgUseRCPatrol;
$fname = 'Article::rollback';
if ( ! $wgUser->isAllowed('rollback') ) {
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}'",