From 61c0064de538c3b1ea61470eadd88fab87d3513e Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 21 Mar 2013 00:03:59 -0700 Subject: [PATCH] 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 --- includes/Title.php | 1 + 1 file changed, 1 insertion(+) 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 ); -- 2.20.1