Deleting a page and then immediately create-protecting it caused a PHP Fatal error
authorOwen Davis <owen@wikia-inc.com>
Mon, 11 Feb 2013 10:36:44 +0000 (11:36 +0100)
committerTim Starling <tstarling@wikimedia.org>
Tue, 13 Aug 2013 04:35:13 +0000 (14:35 +1000)
Change-Id: Ife75371bceda0f5342ee9eb5388d26e0363bebbe

includes/WikiPage.php

index 9d61abc..1f24b86 100644 (file)
@@ -2228,8 +2228,8 @@ class WikiPage implements Page, IDBAccessObject {
                        return Status::newFatal( 'readonlytext', wfReadOnlyReason() );
                }
 
+               $this->loadPageData( 'fromdbmaster' );
                $restrictionTypes = $this->mTitle->getRestrictionTypes();
-
                $id = $this->getId();
 
                if ( !$cascade ) {