From 8e95fd56da0ca96e6687f11f1d2142fab2e5a1a7 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 3 Jul 2006 13:27:19 +0000 Subject: [PATCH] Fixed fatal error on old image deletion when squid was enabled --- includes/Image.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Image.php b/includes/Image.php index ff21c4a064..10ad0ea707 100644 --- a/includes/Image.php +++ b/includes/Image.php @@ -1300,6 +1300,7 @@ class Image function purgeDescription() { $page = Title::makeTitle( NS_IMAGE, $this->name ); $page->invalidateCache(); + $page->purgeSquid(); } /** @@ -1807,7 +1808,7 @@ class Image * @return true on success, false on some kind of failure */ function deleteOld( $archiveName, $reason ) { - $fname = __CLASS__ . '::' . __FUNCTION__; + $fname = __METHOD__; $transaction = new FSTransaction(); $urlArr = array(); @@ -1840,7 +1841,6 @@ class Image if ( $wgUseSquid ) { $urlArr = array( wfImageArchiveUrl( $archiveName ), - $page->getInternalURL() ); wfPurgeSquidServers( $urlArr ); } -- 2.20.1