* Put the LinkCache update in WikiPage::updateRevisionOn() so that we are sure that...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 16 Nov 2011 21:03:06 +0000 (21:03 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Wed, 16 Nov 2011 21:03:06 +0000 (21:03 +0000)
commit610d68c3c3cc7438b3fa0d23e4575db2747e55c0
tree4b836c07f2c875bd0dc506a40b0d6a8d1d7de925
parent5e0707bdef7d736777eb7a2b12d87ee5535f2630
* Put the LinkCache update in WikiPage::updateRevisionOn() so that we are sure that it is executed every time that function get called (and the update succeeds of course); and removed the call to Title::resetArticleID() which is already done by insertOn()
* Also update $this->mLatest and $this->mIsRedirect in updateRevisionOn() (will use this in ApiEditPage to have to create another istance just to grab the new revision ID)
* In WikiPage::doEdit(), get the current latest before going through the process since it's now updated in updateRevisionOn() (would break RecentChange::notifyEdit() otherwise) and pass the current redirect state to use the optimisation in updateRedirectOn() if possible
includes/WikiPage.php