Index: branches/stable/phase3/includes/SpecialMovepage.php |
— | — | @@ -267,7 +267,7 @@ |
268 | 268 | |
269 | 269 | function moveOverExistingRedirect() |
270 | 270 | { |
271 | | - global $wgUser; |
| 271 | + global $wgUser, $wgLinkCache; |
272 | 272 | $fname = "MovePageForm::moveOverExistingRedirect"; |
273 | 273 | $mt = wfMsg( "movedto" ); |
274 | 274 | |
— | — | @@ -276,6 +276,7 @@ |
277 | 277 | "cur_namespace={$this->nns},cur_title='{$this->ndt}' " . |
278 | 278 | "WHERE cur_id={$this->oldid}"; |
279 | 279 | wfQuery( $sql, $fname ); |
| 280 | + $wgLinkCache->clearLink( $this->nft ); |
280 | 281 | |
281 | 282 | $sql = "UPDATE cur SET cur_touched='{$now}'," . |
282 | 283 | "cur_namespace={$this->ons},cur_title='{$this->odt}'," . |
— | — | @@ -285,6 +286,7 @@ |
286 | 287 | "cur_user_text='" . wfStrencode( $wgUser->getName() ) . "'," . |
287 | 288 | "cur_is_redirect=1,cur_is_new=0 WHERE cur_id={$this->newid}"; |
288 | 289 | wfQuery( $sql, $fname ); |
| 290 | + $wgLinkCache->clearLink( $this->oft ); |
289 | 291 | |
290 | 292 | $sql = "UPDATE old SET " . |
291 | 293 | "old_namespace={$this->nns},old_title='{$this->ndt}' WHERE " . |
— | — | @@ -348,7 +350,7 @@ |
349 | 351 | "cur_namespace={$this->nns},cur_title='{$this->ndt}' " . |
350 | 352 | "WHERE cur_id={$this->oldid}"; |
351 | 353 | wfQuery( $sql, $fname ); |
352 | | - $wgLinkCache->clearLink( $this->oft ); |
| 354 | + $wgLinkCache->clearLink( $this->nft ); |
353 | 355 | |
354 | 356 | $common = "{$this->ons},'{$this->odt}'," . |
355 | 357 | "'{$mt} \\\"{$this->nft}\\\"','" . |
— | — | @@ -360,7 +362,7 @@ |
361 | 363 | "VALUES ({$common},'{$won}','{$now}','#REDIRECT [[{$this->nft}]]\n',1,1)"; |
362 | 364 | wfQuery( $sql, $fname ); |
363 | 365 | $this->newid = wfInsertId(); |
364 | | - $wgLinkCache->clearLink( $this->nft ); |
| 366 | + $wgLinkCache->clearLink( $this->oft ); |
365 | 367 | |
366 | 368 | $sql = "UPDATE old SET " . |
367 | 369 | "old_namespace={$this->nns},old_title='{$this->ndt}' WHERE " . |