r91418 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91417‎ | r91418 | r91419 >
Date:19:19, 4 July 2011
Author:aaron
Status:ok
Tags:
Comment:
Removed doPurge() from ImagePage.php, already moved to WikiFilePage
Modified paths:
  • /trunk/phase3/includes/ImagePage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/ImagePage.php
@@ -787,26 +787,6 @@
788788 }
789789
790790 /**
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 - /**
811791 * Display an error with a wikitext description
812792 */
813793 function showError( $description ) {

Status & tagging log