From 654ac000dd574e8e15dfc966fb4b216f322474bc Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Mon, 21 Nov 2005 17:08:11 +0000 Subject: [PATCH] * Don't make logged in users go through the action=purge clickthrough --- includes/Article.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index 316d73bc27..35a23f5e58 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -922,9 +922,9 @@ class Article { } function purge() { - global $wgRequest, $wgOut, $wgUseSquid; + global $wgUser, $wgRequest, $wgOut, $wgUseSquid; - if ( $wgRequest->wasPosted() ) { + if ( $wgUser->isLoggedIn() || $wgRequest->wasPosted() ) { // Invalidate the cache $this->mTitle->invalidateCache(); @@ -2176,7 +2176,6 @@ class Article { global $wgDeferredUpdateList, $wgDBname, $wgMemc; global $wgMessageCache, $wgUser, $wgUseEnotif; - if ( wfRunHooks( 'ArticleEditUpdatesDeleteFromRecentchanges', &$this ) ) { wfSeedRandom(); if ( 0 == mt_rand( 0, 999 ) ) { -- 2.20.1