From: Sam Reed Date: Wed, 12 Jan 2011 02:19:09 +0000 (+0000) Subject: Fix typo from r80075 X-Git-Tag: 1.31.0-rc.0~32603 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=3253df4a9b63ec1c50a7c6d5fcb59c7b4d35bf0a;p=lhc%2Fweb%2Fwiklou.git Fix typo from r80075 Rename table variable --- diff --git a/maintenance/cleanupRemovedModules.php b/maintenance/cleanupRemovedModules.php index a4261f9348..839a8fccce 100644 --- a/maintenance/cleanupRemovedModules.php +++ b/maintenance/cleanupRemovedModules.php @@ -59,7 +59,7 @@ class CleanupRemovedModules extends Maintenance { $this->output( "Cleaning up msg_resource table...\n" ); $i = 1; - $mrRes = $dbw->tableName( 'mr_resource' ); + $mrRes = $dbw->tableName( 'msg_resource' ); do { $where = $moduleList ? "mr_resource NOT IN ($moduleList)" : '1=1'; $dbw->query( "DELETE FROM $mrRes WHERE $where LIMIT $limit", __METHOD__ ); @@ -72,10 +72,10 @@ class CleanupRemovedModules extends Maintenance { $this->output( "Cleaning up msg_resource_links table...\n" ); $i = 1; - $msgRes = $dbw->tableName( 'mr_resource_links' ); + $msgResLinks = $dbw->tableName( 'mr_resource_links' ); do { $where = $moduleList ? "mrl_resource NOT IN ($moduleList)" : '1=1'; - $dbw->query( "DELETE FROM $msgRes WHERE $where LIMIT $limit", __METHOD__ ); + $dbw->query( "DELETE FROM $msgResLinks WHERE $where LIMIT $limit", __METHOD__ ); $numRows = $dbw->affectedRows(); $this->output( "Batch $i: $numRows rows\n" ); $i++;