Index: trunk/phase3/includes/Article.php |
— | — | @@ -96,11 +96,11 @@ |
97 | 97 | if(!$retval) |
98 | 98 | return null; |
99 | 99 | $dbw = wfGetDB(DB_MASTER); |
100 | | - $dbw->insert('redirect', array( |
| 100 | + $dbw->replace('redirect', array('rd_from'), array( |
101 | 101 | 'rd_from' => $this->getID(), |
102 | 102 | 'rd_namespace' => $retval->getNamespace(), |
103 | 103 | 'rd_title' => $retval->getDBKey() |
104 | | - )); |
| 104 | + ), __METHOD__); |
105 | 105 | return $retval; |
106 | 106 | } |
107 | 107 | |