From: Roan Kattouw Date: Tue, 15 Apr 2008 18:32:48 +0000 (+0000) Subject: (bug 13745) Fix regression from r33133 by changing INSERT to REPLACE X-Git-Tag: 1.31.0-rc.0~48296 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=41be56e3ad0d26d256dd49558b2db8dff5240fe3;p=lhc%2Fweb%2Fwiklou.git (bug 13745) Fix regression from r33133 by changing INSERT to REPLACE --- diff --git a/includes/Article.php b/includes/Article.php index 7899d452c6..473d19ab61 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -96,11 +96,11 @@ class Article { if(!$retval) return null; $dbw = wfGetDB(DB_MASTER); - $dbw->insert('redirect', array( + $dbw->replace('redirect', array('rd_from'), array( 'rd_from' => $this->getID(), 'rd_namespace' => $retval->getNamespace(), 'rd_title' => $retval->getDBKey() - )); + ), __METHOD__); return $retval; }