From: Domas Mituzas Date: Sat, 14 May 2005 16:00:33 +0000 (+0000) Subject: yay, use high level Database:: methods! :) X-Git-Tag: 1.5.0alpha2~197 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=52862f60cdce2f43bab2e8dfc4c0b157b6572276;p=lhc%2Fweb%2Fwiklou.git yay, use high level Database:: methods! :) --- diff --git a/includes/LinksUpdate.php b/includes/LinksUpdate.php index f57b229349..95e92102ea 100644 --- a/includes/LinksUpdate.php +++ b/includes/LinksUpdate.php @@ -170,9 +170,7 @@ class LinksUpdate { // delete any removed categorylinks if(count($del) > 0) { // delete old ones - $sql = "DELETE FROM $categorylinks WHERE cl_from='{$this->mId}' AND cl_to IN('"; - $sql .= implode("','", $del) . "')"; - $dbw->query( $sql, $fname ); + $dbw->delete('categorylinks', array('cl_from'=>$this->mId, 'cl_to'=>$del)); foreach($del as $cname){ $nt = Title::makeTitle( NS_CATEGORY, $cname ); $nt->invalidateCache();