From: Owen Davis Date: Mon, 11 Feb 2013 10:36:44 +0000 (+0100) Subject: Deleting a page and then immediately create-protecting it caused a PHP Fatal error X-Git-Tag: 1.31.0-rc.0~17686^2 X-Git-Url: http://git.cyclocoop.org/%27%20.%20url_absolue%28%24favicon%29%20.%20?a=commitdiff_plain;h=5ea6530a9b04a2702d7c0944973508596e4de3ba;p=lhc%2Fweb%2Fwiklou.git Deleting a page and then immediately create-protecting it caused a PHP Fatal error Change-Id: Ife75371bceda0f5342ee9eb5388d26e0363bebbe --- diff --git a/includes/WikiPage.php b/includes/WikiPage.php index 9d61abc754..1f24b8699d 100644 --- a/includes/WikiPage.php +++ b/includes/WikiPage.php @@ -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 ) {