From 0cdc6e8d57bfe8e82d81711d9831858bd4500fc5 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 16 Jun 2006 03:16:46 +0000 Subject: [PATCH] Fix purge of image on delete --- includes/Image.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" ); -- 2.20.1