Index: branches/REL1_3/phase3/includes/Title.php |
— | — | @@ -884,11 +884,10 @@ |
885 | 885 | |
886 | 886 | # Fixing category links (those without piped 'alternate' names) to be sorted under the new title |
887 | 887 | |
888 | | - $dbw =& wfGetDB( DB_MASTER ); |
889 | 888 | $sql = "UPDATE categorylinks SET cl_sortkey='" . wfStrencode( $nt->getPrefixedText() ) . "'" . |
890 | 889 | " WHERE cl_from='" . wfStrencode( $this->getArticleID() ) . "'" . |
891 | 890 | " AND cl_sortkey='" . wfStrencode( $this->getPrefixedText() ) . "'"; |
892 | | - $dbw->query( $sql, "SpecialMovepage::doSubmit" ); |
| 891 | + wfQuery( $sql, DB_WRITE, "SpecialMovepage::doSubmit" ); |
893 | 892 | |
894 | 893 | |
895 | 894 | # Update watchlists |