Removed doPurge() from ImagePage.php, already moved to WikiFilePage
authorAaron Schulz <aaron@users.mediawiki.org>
Mon, 4 Jul 2011 19:19:36 +0000 (19:19 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Mon, 4 Jul 2011 19:19:36 +0000 (19:19 +0000)
includes/ImagePage.php

index ce1cbdd..bd0c8f0 100644 (file)
@@ -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
         */