r62029 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62028‎ | r62029 | r62030 >
Date:15:10, 5 February 2010
Author:ialex
Status:ok
Tags:
Comment:
Removed colum names from WHERE clause so that it doesn't break for wiki having tables prefix
Modified paths:
  • /trunk/phase3/maintenance/rollbackEdits.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/rollbackEdits.php
@@ -83,7 +83,7 @@
8484 $results = $dbr->select(
8585 array( 'page', 'revision' ),
8686 array( 'page_namespace', 'page_title' ),
87 - array( 'page.page_latest = revision.rev_id', 'revision.rev_user_text' => $user ),
 87+ array( 'page_latest = rev_id', 'rev_user_text' => $user ),
8888 __METHOD__
8989 );
9090 while( $row = $dbr->fetchObject( $results ) ) {

Status & tagging log