From: Brion Vibber Date: Fri, 16 Jun 2006 03:16:46 +0000 (+0000) Subject: Fix purge of image on delete X-Git-Tag: 1.31.0-rc.0~56770 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=0cdc6e8d57bfe8e82d81711d9831858bd4500fc5;p=lhc%2Fweb%2Fwiklou.git Fix purge of image on delete --- diff --git a/includes/Image.php b/includes/Image.php index dc56d8eded..3f5e64242d 100644 --- a/includes/Image.php +++ b/includes/Image.php @@ -1320,7 +1320,7 @@ class Image // Purge cache of all pages using this image $linksTo = $this->getLinksTo(); - global $wgUseSquid; + global $wgUseSquid, $wgPostCommitUpdateList; if ( $wgUseSquid ) { $u = SquidUpdate::newFromTitles( $linksTo, $urlArr ); array_push( $wgPostCommitUpdateList, $u ); @@ -1754,7 +1754,7 @@ class Image function delete( $reason ) { $fname = __CLASS__ . '::' . __FUNCTION__; $transaction = new FSTransaction(); - $urlArr = array(); + $urlArr = array( $this->getURL() ); if( !FileStore::lock() ) { wfDebug( "$fname: failed to acquire file store lock, aborting\n" );