r33383 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r33382‎ | r33383 | r33384 >
Date:18:32, 15 April 2008
Author:catrope
Status:old
Tags:
Comment:
(bug 13745) Fix regression from r33133 by changing INSERT to REPLACE
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -96,11 +96,11 @@
9797 if(!$retval)
9898 return null;
9999 $dbw = wfGetDB(DB_MASTER);
100 - $dbw->insert('redirect', array(
 100+ $dbw->replace('redirect', array('rd_from'), array(
101101 'rd_from' => $this->getID(),
102102 'rd_namespace' => $retval->getNamespace(),
103103 'rd_title' => $retval->getDBKey()
104 - ));
 104+ ), __METHOD__);
105105 return $retval;
106106 }
107107

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r33133Committing patch for bug 10931, which also fixes bug 13651. For a detailed ex...catrope15:20, 11 April 2008

Status & tagging log