From: Chad Horohoe Date: Tue, 19 Aug 2008 19:10:07 +0000 (+0000) Subject: Move the call to view() for Action::purge() up from doPurge() to purge(). Kinda like... X-Git-Tag: 1.31.0-rc.0~45791 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=08021b0b3072d890a08f7505a2efb66b46000576;p=lhc%2Fweb%2Fwiklou.git Move the call to view() for Action::purge() up from doPurge() to purge(). Kinda like last time, only less broken. Calling Article::doPurge() now lets the backend do a purge without output (and doesn't turn Article::purge() into a UI and backend entry, which is good) --- diff --git a/includes/Article.php b/includes/Article.php index 7e2b6b7c1d..5118176441 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1044,6 +1044,7 @@ class Article { if ( $wgUser->isAllowed( 'purge' ) || $wgRequest->wasPosted() ) { if( wfRunHooks( 'ArticlePurge', array( &$this ) ) ) { $this->doPurge(); + $this->view(); } } else { $msg = $wgOut->parse( wfMsg( 'confirm_purge' ) ); @@ -1086,7 +1087,6 @@ class Article { } $wgMessageCache->replace( $this->mTitle->getDBkey(), $text ); } - $this->view(); } /**