dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
605f0d7
)
This should fix bug 975072 (Move page doesn't update categories page)
author
Magnus Manske
<magnusmanske@users.mediawiki.org>
Fri, 6 Aug 2004 16:25:27 +0000
(16:25 +0000)
committer
Magnus Manske
<magnusmanske@users.mediawiki.org>
Fri, 6 Aug 2004 16:25:27 +0000
(16:25 +0000)
includes/Title.php
patch
|
blob
|
history
diff --git
a/includes/Title.php
b/includes/Title.php
index
03bcf97
..
b224ad0
100644
(file)
--- a/
includes/Title.php
+++ b/
includes/Title.php
@@
-898,6
+898,14
@@
class Title {
$this->moveToNewTitle( $nt, $newid );
}
+
+ # Fixing category links (those without piped 'alternate' names) to be sorted under the new title
+
+ $dbw =& wfGetDB( DB_MASTER );
+ $sql = "UPDATE categorylinks SET cl_sortkey=\"" . $nt->getPrefixedText() . "\" WHERE cl_from=\"" .$this->getArticleID() . "\" AND cl_sortkey=\"" . $this->getPrefixedText() . "\"" ;
+ $dbw->query( $sql, "SpecialMovepage::doSubmit" );
+
+
# Update watchlists
$oldnamespace = $this->getNamespace() & ~1;