* Store the value of the page.page_restrictions field in Title::loadFromRow() and...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 2 Jan 2012 12:49:50 +0000 (12:49 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 2 Jan 2012 12:49:50 +0000 (12:49 +0000)
commit68bf1a77b4b1f1465a72ae3edffb19ae28da2765
treed32d89d5d59d8d7e8dd64d0ba19612ff41432195
parent7739f06b97e2fba23310ed65642d550d17b56ed8
* Store the value of the page.page_restrictions field in Title::loadFromRow() and defers loading restrictions until when it's really needed; this reuses the Title::$mOldRestrictions member which is not used anywhere yet
* Removed $oldFashionedRestrictions parameter from Title::loadRestrictions*(); the only extension using it is LiquidThreads and it's using Title::newFromRow() to create the Title object, so the field is already cached (and this even allows to cache that field when there's no row for that page in the page_restrictions table)
* Also reset $mTouched and $mIsNew members on resetArticleId() calls
* Updated FakeTitle a bit
includes/FakeTitle.php
includes/Title.php
includes/WikiPage.php