From: Aaron Schulz Date: Thu, 21 Mar 2013 07:03:59 +0000 (-0700) Subject: Call loadPageData() as needed in Title::moveToInternal. X-Git-Tag: 1.31.0-rc.0~20261^2 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=61c0064de538c3b1ea61470eadd88fab87d3513e;p=lhc%2Fweb%2Fwiklou.git Call loadPageData() as needed in Title::moveToInternal. * This avoids use of a slave for loading the page ID to do the updates using $newpage. That bug prevented page moves by using the old 0 ID and throwing an exception. Bug: 46397 Change-Id: Iea3259dce6840e3f2959d98a20177acd60433b64 --- diff --git a/includes/Title.php b/includes/Title.php index e81023acbe..84848eb42f 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -3838,6 +3838,7 @@ class Title { $this->resetArticleID( 0 ); $nt->resetArticleID( $oldid ); + $newpage->loadPageData( WikiPage::READ_LOCKING ); // bug 46397 $newpage->updateRevisionOn( $dbw, $nullRevision );