* Modified Article::loadPageData() to use a slave database connection and pageDataFro...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 3 Jan 2011 19:50:01 +0000 (19:50 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Mon, 3 Jan 2011 19:50:01 +0000 (19:50 +0000)
commit03dfa9f60c61f0c10af58618e837fb771bd61223
treebb3ea82eee204e6227d28a3fe255e72215be43be
parent5cc90de1a17c70b5ecc3c79b0e69966f1e13f2b9
* Modified Article::loadPageData() to use a slave database connection and pageDataFromTitle() instead of pageDataFromId() in the default case, as in Wiki.php (this also saves a query since the ID will be fetched with other fileds)
* Removed the loadPageData() call for the initial article in Wiki.php, will be triggered by the isRedirect() call 7 lines below if needed (this was not needed if $target is set by the InitializeArticleMaybeRedirect hook), but kept the second one (same as above, Article::exists() triggers Title::getArticleId() that would use one query to get id and a second one is needed to get the complete page data)
* Modified Article::fetchContent() to use common code (loadPageData()) and to only call it if really needed
includes/Article.php
includes/Wiki.php