From 32479f609b0e4200d612186bc7b5fafcc9b830e9 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Thu, 20 Mar 2008 22:00:59 +0000 Subject: [PATCH] Fix call to deprecated functions --- includes/filerepo/File.php | 2 +- includes/filerepo/LocalFile.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/filerepo/File.php b/includes/filerepo/File.php index d0d94fa20e..72eacc4d5f 100644 --- a/includes/filerepo/File.php +++ b/includes/filerepo/File.php @@ -548,7 +548,7 @@ abstract class File { } if ( $wgUseSquid ) { - wfPurgeSquidServers( array( $thumbUrl ) ); + SquidUpdate::purge( array( $thumbUrl ) ); } } while (false); diff --git a/includes/filerepo/LocalFile.php b/includes/filerepo/LocalFile.php index 87f2e4302d..871756a598 100644 --- a/includes/filerepo/LocalFile.php +++ b/includes/filerepo/LocalFile.php @@ -548,7 +548,7 @@ class LocalFile extends File $this->purgeThumbnails(); // Purge squid cache for this file - wfPurgeSquidServers( array( $this->getURL() ) ); + SquidUpdate::purge( array( $this->getURL() ) ); } /** @@ -572,7 +572,7 @@ class LocalFile extends File // Purge the squid if ( $wgUseSquid ) { - wfPurgeSquidServers( $urls ); + SquidUpdate::purge( $urls ); } } @@ -738,7 +738,7 @@ class LocalFile extends File // Delete thumbnails and refresh the metadata cache $this->purgeThumbnails(); $this->saveToCache(); - wfPurgeSquidServers( array( $this->getURL() ) ); + SquidUpdate::purge( array( $this->getURL() ) ); // Fail now if the file isn't there if ( !$this->fileExists ) { -- 2.20.1