From 8b643b3077486487caf8c1bd252f3a6ebc1cd487 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Mon, 2 Jun 2008 21:48:02 +0000 Subject: [PATCH] * (bug 14258, 14368) Fix for subpage renames in replication environments --- RELEASE-NOTES | 2 ++ includes/SpecialMovepage.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 && -- 2.20.1