From: Ævar Arnfjörð Bjarmason Date: Sat, 31 Dec 2005 01:23:33 +0000 (+0000) Subject: * Added a hook (ArticlePurge) to Article::purge() to override whether or not X-Git-Tag: 1.6.0~832 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=71f31cb977df7131980f6eeacd0eece5ec3b93c9;p=lhc%2Fweb%2Fwiklou.git * Added a hook (ArticlePurge) to Article::purge() to override whether or not anonymous users have to go through a confirmation to purge their cache --- diff --git a/includes/Article.php b/includes/Article.php index 5a667b635d..2945a2a6ce 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -975,7 +975,7 @@ class Article { function purge() { global $wgUser, $wgRequest, $wgOut, $wgUseSquid; - if ( $wgUser->isLoggedIn() || $wgRequest->wasPosted() ) { + if ( $wgUser->isLoggedIn() || $wgRequest->wasPosted() || ! wfRunHooks( 'ArticlePurge', array( &$this ) ) ) { // Invalidate the cache $this->mTitle->invalidateCache();