X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fpage%2FWikiFilePage.php;h=c508abe3892f7202932583d2b76431c4e3f64a48;hb=df8e1a3d875d0107b1a9ae696bac4c1233e93da1;hp=bfcd4c3111f315e33fdf5f5f4dccdc144a4e2b02;hpb=23376a76c91b26353e5d2f546520002490c761d7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/page/WikiFilePage.php b/includes/page/WikiFilePage.php index bfcd4c3111..c508abe389 100644 --- a/includes/page/WikiFilePage.php +++ b/includes/page/WikiFilePage.php @@ -169,8 +169,7 @@ class WikiFilePage extends WikiPage { $this->loadFile(); if ( $this->mFile->exists() ) { wfDebug( 'ImagePage::doPurge purging ' . $this->mFile->getName() . "\n" ); - $update = new HTMLCacheUpdate( $this->mTitle, 'imagelinks' ); - $update->doUpdate(); + DeferredUpdates::addUpdate( new HTMLCacheUpdate( $this->mTitle, 'imagelinks' ) ); $this->mFile->upgradeRow(); $this->mFile->purgeCache( array( 'forThumbRefresh' => true ) ); } else {