Index: trunk/phase3/includes/Title.php |
— | — | @@ -898,6 +898,14 @@ |
899 | 899 | $this->moveToNewTitle( $nt, $newid ); |
900 | 900 | } |
901 | 901 | |
| 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 | + |
902 | 910 | # Update watchlists |
903 | 911 | |
904 | 912 | $oldnamespace = $this->getNamespace() & ~1; |