From: Chad Horohoe Date: Sun, 12 Dec 2010 15:29:47 +0000 (+0000) Subject: Per CR on r71359: Fix DB_MASTER where it should be __METHOD__ X-Git-Tag: 1.31.0-rc.0~33365 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/?a=commitdiff_plain;h=04e08a623cc4dfc118f9f099a41647a4860633f3;p=lhc%2Fweb%2Fwiklou.git Per CR on r71359: Fix DB_MASTER where it should be __METHOD__ --- diff --git a/maintenance/convertLinks.php b/maintenance/convertLinks.php index 3493d45f2b..d4c8cc26ff 100644 --- a/maintenance/convertLinks.php +++ b/maintenance/convertLinks.php @@ -193,12 +193,12 @@ This gives a huge speed improvement for very large links tables which are MyISAM if ( $overwriteLinksTable ) { # Check for existing links_backup, and delete it if it exists. $this->output( "Dropping backup links table if it exists..." ); - $dbw->query( "DROP TABLE IF EXISTS $links_backup", DB_MASTER ); + $dbw->query( "DROP TABLE IF EXISTS $links_backup", __METHOD__ ); $this->output( " done.\n" ); # Swap in the new table, and move old links table to links_backup $this->output( "Swapping tables '$links' to '$links_backup'; '$links_temp' to '$links'..." ); - $dbw->query( "RENAME TABLE links TO $links_backup, $links_temp TO $links", DB_MASTER ); + $dbw->query( "RENAME TABLE links TO $links_backup, $links_temp TO $links", __METHOD__ ); $this->output( " done.\n\n" ); $dbw->close();