Make data loading a bit better in ApiProtect.
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Fri, 20 Apr 2012 09:57:01 +0000 (11:57 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Wed, 25 Apr 2012 09:22:52 +0000 (11:22 +0200)
commit8cc5236e18da6ddae2cb2a0fa2e601764c8fcf8f
tree4c0c95b2e39cd6a689cf9727fe8674b36adf52ba
parentea506d84a5994745c9abfd750e3c3d5c5924a113
Make data loading a bit better in ApiProtect.

* Use WikiPage::newFromID() directly instead of Title::newFromID() (change pending review to improve it)
* Directly load the data from the master when creating a page from its name, it avoids a second database query when calling $this->getLatest() in WikiPage::doUpdateRestrictions()

Change-Id: I993d087961c0ef41a2e3f8d949922d3d30ca1fde
includes/api/ApiProtect.php