Index: trunk/phase3/maintenance/deleteOrphanedRevisions.php |
— | — | @@ -40,7 +40,7 @@ |
41 | 41 | |
42 | 42 | $dbw = wfGetDB( DB_MASTER ); |
43 | 43 | $dbw->immediateBegin(); |
44 | | - list( $page, $revision ) = $dbw->tableNames( 'page', 'revision' ); |
| 44 | + list( $page, $revision ) = $dbw->tableNamesN( 'page', 'revision' ); |
45 | 45 | |
46 | 46 | # Find all the orphaned revisions |
47 | 47 | $this->output( "Checking for orphaned revisions..." ); |
— | — | @@ -48,6 +48,7 @@ |
49 | 49 | $res = $dbw->query( $sql, 'deleteOrphanedRevisions' ); |
50 | 50 | |
51 | 51 | # Stash 'em all up for deletion (if needed) |
| 52 | + $revisions = array(); |
52 | 53 | while( $row = $dbw->fetchObject( $res ) ) |
53 | 54 | $revisions[] = $row->rev_id; |
54 | 55 | $dbw->freeResult( $res ); |