From: umherirrender Date: Fri, 17 Jan 2014 18:49:06 +0000 (+0100) Subject: Call WikiPage::doViewUpdates also on missing article page view X-Git-Tag: 1.31.0-rc.0~16883^2 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=269315bbe1e904697f3362729770228ff57851ef;p=lhc%2Fweb%2Fwiklou.git Call WikiPage::doViewUpdates also on missing article page view Reset notification timestamp also for deleted pages on the watchlist, this will give a empty notification on api's prop=info&inprop=notificationtimestamp for the timestamp after visiting a deleted page. This also reset the remaining newtalk flags for anon user talks which are effected by bug 14077. Change-Id: Ibdb22ab1e0bea02b6ef730cd5737f91801b8d700 --- diff --git a/includes/Article.php b/includes/Article.php index a5d4d5be62..b132ca9f9a 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -611,6 +611,7 @@ class Article implements Page { if ( !$this->mPage->exists() ) { wfDebug( __METHOD__ . ": showing missing article\n" ); $this->showMissingArticle(); + $this->mPage->doViewUpdates( $user ); wfProfileOut( __METHOD__ ); return; } diff --git a/includes/WikiPage.php b/includes/WikiPage.php index bcd0f69486..aed3b96ec9 100644 --- a/includes/WikiPage.php +++ b/includes/WikiPage.php @@ -1173,7 +1173,7 @@ class WikiPage implements Page, IDBAccessObject { } /** - * Do standard deferred updates after page view + * Do standard deferred updates after page view (existing or missing page) * @param User $user The relevant user * @param int $oldid The revision id being viewed. If not given or 0, latest revision is assumed. */