Move the call to view() for Action::purge() up from doPurge() to purge(). Kinda like...
authorChad Horohoe <demon@users.mediawiki.org>
Tue, 19 Aug 2008 19:10:07 +0000 (19:10 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Tue, 19 Aug 2008 19:10:07 +0000 (19:10 +0000)
includes/Article.php

index 7e2b6b7..5118176 100644 (file)
@@ -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();
        }
 
        /**