Call WikiPage::doViewUpdates also on missing article page view
authorumherirrender <umherirrender_de.wp@web.de>
Fri, 17 Jan 2014 18:49:06 +0000 (19:49 +0100)
committerUmherirrender <umherirrender_de.wp@web.de>
Sat, 15 Feb 2014 18:39:45 +0000 (18:39 +0000)
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
includes/WikiPage.php

index a5d4d5b..b132ca9 100644 (file)
@@ -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;
                                        }
index bcd0f69..aed3b96 100644 (file)
@@ -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.
         */