From 269315bbe1e904697f3362729770228ff57851ef Mon Sep 17 00:00:00 2001 From: umherirrender Date: Fri, 17 Jan 2014 19:49:06 +0100 Subject: [PATCH] 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 --- includes/Article.php | 1 + includes/WikiPage.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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. */ -- 2.20.1