From f6c6ecca6ce1f216554c77626da9f88f1f467730 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 4 Jul 2011 19:19:36 +0000 Subject: [PATCH] Removed doPurge() from ImagePage.php, already moved to WikiFilePage --- includes/ImagePage.php | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/includes/ImagePage.php b/includes/ImagePage.php index ce1cbdd7c8..bd0c8f0220 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -786,26 +786,6 @@ EOT $deleter->execute(); } - /** - * Override handling of action=purge - */ - public function doPurge() { - $this->loadFile(); - if ( $this->mPage->getFile()->exists() ) { - wfDebug( 'ImagePage::doPurge purging ' . $this->mPage->getFile()->getName() . "\n" ); - $update = new HTMLCacheUpdate( $this->getTitle(), 'imagelinks' ); - $update->doUpdate(); - $this->mPage->getFile()->upgradeRow(); - $this->mPage->getFile()->purgeCache(); - } else { - wfDebug( 'ImagePage::doPurge no image for ' . $this->mPage->getFile()->getName() . "; limiting purge to cache only\n" ); - // even if the file supposedly doesn't exist, force any cached information - // to be updated (in case the cached information is wrong) - $this->mPage->getFile()->purgeCache(); - } - parent::doPurge(); - } - /** * Display an error with a wikitext description */ -- 2.20.1