r1881 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r1880‎ | r1881 | r1882 >
Date:08:54, 4 November 2003
Author:vibber
Status:old
Tags:
Comment:
Move page / linkcache / memcached fix
Modified paths:
  • /branches/stable/phase3/includes/SpecialMovepage.php (modified) (history)

Diff [purge]

Index: branches/stable/phase3/includes/SpecialMovepage.php
@@ -267,7 +267,7 @@
268268
269269 function moveOverExistingRedirect()
270270 {
271 - global $wgUser;
 271+ global $wgUser, $wgLinkCache;
272272 $fname = "MovePageForm::moveOverExistingRedirect";
273273 $mt = wfMsg( "movedto" );
274274
@@ -276,6 +276,7 @@
277277 "cur_namespace={$this->nns},cur_title='{$this->ndt}' " .
278278 "WHERE cur_id={$this->oldid}";
279279 wfQuery( $sql, $fname );
 280+ $wgLinkCache->clearLink( $this->nft );
280281
281282 $sql = "UPDATE cur SET cur_touched='{$now}'," .
282283 "cur_namespace={$this->ons},cur_title='{$this->odt}'," .
@@ -285,6 +286,7 @@
286287 "cur_user_text='" . wfStrencode( $wgUser->getName() ) . "'," .
287288 "cur_is_redirect=1,cur_is_new=0 WHERE cur_id={$this->newid}";
288289 wfQuery( $sql, $fname );
 290+ $wgLinkCache->clearLink( $this->oft );
289291
290292 $sql = "UPDATE old SET " .
291293 "old_namespace={$this->nns},old_title='{$this->ndt}' WHERE " .
@@ -348,7 +350,7 @@
349351 "cur_namespace={$this->nns},cur_title='{$this->ndt}' " .
350352 "WHERE cur_id={$this->oldid}";
351353 wfQuery( $sql, $fname );
352 - $wgLinkCache->clearLink( $this->oft );
 354+ $wgLinkCache->clearLink( $this->nft );
353355
354356 $common = "{$this->ons},'{$this->odt}'," .
355357 "'{$mt} \\\"{$this->nft}\\\"','" .
@@ -360,7 +362,7 @@
361363 "VALUES ({$common},'{$won}','{$now}','#REDIRECT [[{$this->nft}]]\n',1,1)";
362364 wfQuery( $sql, $fname );
363365 $this->newid = wfInsertId();
364 - $wgLinkCache->clearLink( $this->nft );
 366+ $wgLinkCache->clearLink( $this->oft );
365367
366368 $sql = "UPDATE old SET " .
367369 "old_namespace={$this->nns},old_title='{$this->ndt}' WHERE " .

Follow-up revisions

RevisionCommit summaryAuthorDate
r32727Updated to r1881 of http://svn.fckeditor.net/MediaWiki/trunk...brion20:23, 2 April 2008

Status & tagging log