From: Alexandre Emsenhuber Date: Thu, 20 Mar 2008 22:00:59 +0000 (+0000) Subject: Fix call to deprecated functions X-Git-Tag: 1.31.0-rc.0~48915 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=32479f609b0e4200d612186bc7b5fafcc9b830e9;p=lhc%2Fweb%2Fwiklou.git Fix call to deprecated functions --- 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 ) {