From 08021b0b3072d890a08f7505a2efb66b46000576 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Tue, 19 Aug 2008 19:10:07 +0000 Subject: [PATCH] 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) --- includes/Article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } /** -- 2.20.1