From: Brion Vibber Date: Tue, 7 Dec 2004 07:58:36 +0000 (+0000) Subject: (bug 1027) Fix page moves with table prefix X-Git-Tag: 1.5.0alpha1~1137 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=72c03915ec99d632a91c86d324951df538f7226d;p=lhc%2Fweb%2Fwiklou.git (bug 1027) Fix page moves with table prefix --- diff --git a/includes/Title.php b/includes/Title.php index 43f8e78cee..3374c0dbe9 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1359,7 +1359,8 @@ class Title { # Fixing category links (those without piped 'alternate' names) to be sorted under the new title $dbw =& wfGetDB( DB_MASTER ); - $sql = "UPDATE categorylinks SET cl_sortkey=" . $dbw->addQuotes( $nt->getPrefixedText() ) . + $categorylinks = $dbw->tableName( 'categorylinks' ); + $sql = "UPDATE $categorylinks SET cl_sortkey=" . $dbw->addQuotes( $nt->getPrefixedText() ) . " WHERE cl_from=" . $dbw->addQuotes( $this->getArticleID() ) . " AND cl_sortkey=" . $dbw->addQuotes( $this->getPrefixedText() ); $dbw->query( $sql, 'SpecialMovepage::doSubmit' );