r4548 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r4547‎ | r4548 | r4549 >
Date:20:42, 6 August 2004
Author:vibber
Status:old
Tags:
Comment:
Use old-fashioned query funcs. For some reason the other way works on my
test box but not on live wikipedia.
Modified paths:
  • /branches/REL1_3/phase3/includes/Title.php (modified) (history)

Diff [purge]

Index: branches/REL1_3/phase3/includes/Title.php
@@ -884,11 +884,10 @@
885885
886886 # Fixing category links (those without piped 'alternate' names) to be sorted under the new title
887887
888 - $dbw =& wfGetDB( DB_MASTER );
889888 $sql = "UPDATE categorylinks SET cl_sortkey='" . wfStrencode( $nt->getPrefixedText() ) . "'" .
890889 " WHERE cl_from='" . wfStrencode( $this->getArticleID() ) . "'" .
891890 " AND cl_sortkey='" . wfStrencode( $this->getPrefixedText() ) . "'";
892 - $dbw->query( $sql, "SpecialMovepage::doSubmit" );
 891+ wfQuery( $sql, DB_WRITE, "SpecialMovepage::doSubmit" );
893892
894893
895894 # Update watchlists

Status & tagging log