From 71f31cb977df7131980f6eeacd0eece5ec3b93c9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sat, 31 Dec 2005 01:23:33 +0000 Subject: [PATCH] * Added a hook (ArticlePurge) to Article::purge() to override whether or not anonymous users have to go through a confirmation to purge their cache --- includes/Article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.20.1