r4540 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r4539‎ | r4540 | r4541 >
Date:16:25, 6 August 2004
Author:magnus_manske
Status:old
Tags:
Comment:
This should fix bug 975072 (Move page doesn't update categories page)
Modified paths:
  • /trunk/phase3/includes/Title.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Title.php
@@ -898,6 +898,14 @@
899899 $this->moveToNewTitle( $nt, $newid );
900900 }
901901
 902+
 903+ # Fixing category links (those without piped 'alternate' names) to be sorted under the new title
 904+
 905+ $dbw =& wfGetDB( DB_MASTER );
 906+ $sql = "UPDATE categorylinks SET cl_sortkey=\"" . $nt->getPrefixedText() . "\" WHERE cl_from=\"" .$this->getArticleID() . "\" AND cl_sortkey=\"" . $this->getPrefixedText() . "\"" ;
 907+ $dbw->query( $sql, "SpecialMovepage::doSubmit" );
 908+
 909+
902910 # Update watchlists
903911
904912 $oldnamespace = $this->getNamespace() & ~1;

Follow-up revisions

RevisionCommit summaryAuthorDate
r4545Fix bug 975072 (Move page doesn't update categories page)...vibber19:34, 6 August 2004

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r4539This should fix bug 975072 (Move page doesn't update categories page)magnus_manske16:09, 6 August 2004

Status & tagging log