Index: trunk/phase3/maintenance/cleanupRemovedModules.php |
— | — | @@ -59,7 +59,7 @@ |
60 | 60 | $this->output( "Cleaning up msg_resource table...\n" ); |
61 | 61 | $i = 1; |
62 | 62 | |
63 | | - $mrRes = $dbw->tableName( 'mr_resource' ); |
| 63 | + $mrRes = $dbw->tableName( 'msg_resource' ); |
64 | 64 | do { |
65 | 65 | $where = $moduleList ? "mr_resource NOT IN ($moduleList)" : '1=1'; |
66 | 66 | $dbw->query( "DELETE FROM $mrRes WHERE $where LIMIT $limit", __METHOD__ ); |
— | — | @@ -72,10 +72,10 @@ |
73 | 73 | |
74 | 74 | $this->output( "Cleaning up msg_resource_links table...\n" ); |
75 | 75 | $i = 1; |
76 | | - $msgRes = $dbw->tableName( 'mr_resource_links' ); |
| 76 | + $msgResLinks = $dbw->tableName( 'mr_resource_links' ); |
77 | 77 | do { |
78 | 78 | $where = $moduleList ? "mrl_resource NOT IN ($moduleList)" : '1=1'; |
79 | | - $dbw->query( "DELETE FROM $msgRes WHERE $where LIMIT $limit", __METHOD__ ); |
| 79 | + $dbw->query( "DELETE FROM $msgResLinks WHERE $where LIMIT $limit", __METHOD__ ); |
80 | 80 | $numRows = $dbw->affectedRows(); |
81 | 81 | $this->output( "Batch $i: $numRows rows\n" ); |
82 | 82 | $i++; |