From: Brion Vibber Date: Tue, 3 Aug 2004 04:52:19 +0000 (+0000) Subject: Update user talk on diff-to-current and if the page doesn't exist. X-Git-Tag: 1.5.0alpha1~2533 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=8b514f73dbc3335b0fff15863f8d219cdd4c4589;p=lhc%2Fweb%2Fwiklou.git Update user talk on diff-to-current and if the page doesn't exist. Fixes for: * [ 711599 ] Viewing current diff of user talk doesn't clear newtalk * [ 988485 ] Deleted talk page can't clear newtalk --- diff --git a/includes/Article.php b/includes/Article.php index c35e3ed056..f14d904f4e 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -655,6 +655,10 @@ class Article { $de = new DifferenceEngine( intval($oldid), intval($diff) ); $de->showDiffPage(); wfProfileOut( $fname ); + if( $diff == 0 ) { + # Run view updates for current revision only + $this->viewUpdates(); + } return; } @@ -1638,10 +1642,10 @@ class Article { $u = new SiteStatsUpdate( 1, 0, 0 ); array_push( $wgDeferredUpdateList, $u ); } - $u = new UserTalkUpdate( 0, $this->mTitle->getNamespace(), - $this->mTitle->getDBkey() ); - array_push( $wgDeferredUpdateList, $u ); } + $u = new UserTalkUpdate( 0, $this->mTitle->getNamespace(), + $this->mTitle->getDBkey() ); + array_push( $wgDeferredUpdateList, $u ); } # Do standard deferred updates after page edit.