From 52862f60cdce2f43bab2e8dfc4c0b157b6572276 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Sat, 14 May 2005 16:00:33 +0000 Subject: [PATCH] yay, use high level Database:: methods! :) --- includes/LinksUpdate.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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(); -- 2.20.1