From: Brion Vibber Date: Mon, 2 Jun 2008 21:48:02 +0000 (+0000) Subject: * (bug 14258, 14368) Fix for subpage renames in replication environments X-Git-Tag: 1.31.0-rc.0~47231 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28?a=commitdiff_plain;h=8b643b3077486487caf8c1bd252f3a6ebc1cd487;p=lhc%2Fweb%2Fwiklou.git * (bug 14258, 14368) Fix for subpage renames in replication environments --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 078c707f61..a9474a10ea 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -321,6 +321,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN ListGroupRights special page now links to the project namespace page for it, not the main namespace page. * (bug 11659) Urldecode image names in galleries +* (bug 14258, 14368) Fix for subpage renames in replication environments + === API changes in 1.13 === diff --git a/includes/SpecialMovepage.php b/includes/SpecialMovepage.php index 5087b12cc9..5a61817b86 100644 --- a/includes/SpecialMovepage.php +++ b/includes/SpecialMovepage.php @@ -309,7 +309,7 @@ class MovePageForm { # would mean that you couldn't move them back in one operation, which # is bad. FIXME: A specific error message should be given in this # case. - $dbr = wfGetDB( DB_SLAVE ); + $dbr = wfGetDB( DB_MASTER ); if( $this->moveSubpages && ( MWNamespace::hasSubpages( $nt->getNamespace() ) || ( $this->moveTalk &&