Index: trunk/phase3/includes/ImagePage.php |
— | — | @@ -787,26 +787,6 @@ |
788 | 788 | } |
789 | 789 | |
790 | 790 | /** |
791 | | - * Override handling of action=purge |
792 | | - */ |
793 | | - public function doPurge() { |
794 | | - $this->loadFile(); |
795 | | - if ( $this->mPage->getFile()->exists() ) { |
796 | | - wfDebug( 'ImagePage::doPurge purging ' . $this->mPage->getFile()->getName() . "\n" ); |
797 | | - $update = new HTMLCacheUpdate( $this->getTitle(), 'imagelinks' ); |
798 | | - $update->doUpdate(); |
799 | | - $this->mPage->getFile()->upgradeRow(); |
800 | | - $this->mPage->getFile()->purgeCache(); |
801 | | - } else { |
802 | | - wfDebug( 'ImagePage::doPurge no image for ' . $this->mPage->getFile()->getName() . "; limiting purge to cache only\n" ); |
803 | | - // even if the file supposedly doesn't exist, force any cached information |
804 | | - // to be updated (in case the cached information is wrong) |
805 | | - $this->mPage->getFile()->purgeCache(); |
806 | | - } |
807 | | - parent::doPurge(); |
808 | | - } |
809 | | - |
810 | | - /** |
811 | 791 | * Display an error with a wikitext description |
812 | 792 | */ |
813 | 793 | function showError( $description ) { |