public function getActionOverrides() {
$overrides = parent::getActionOverrides();
- $overrides[ 'revert' ] = 'RevertFileAction';
+ $overrides['revert'] = 'RevertFileAction';
return $overrides;
}
/**
* @return bool
*/
- public function isRedirect( ) {
+ public function isRedirect() {
$this->loadFile();
if ( $this->mFile->isLocal() ) {
return parent::isRedirect();
// to be updated (in case the cached information is wrong)
$this->mFile->purgeCache( array( 'forThumbRefresh' => true ) );
}
+ if ( $this->mRepo ) {
+ // Purge redirect cache
+ $this->mRepo->invalidateImageRedirect( $this->mTitle );
+ }
return parent::doPurge();
}
}