Fix call to deprecated functions
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 20 Mar 2008 22:00:59 +0000 (22:00 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 20 Mar 2008 22:00:59 +0000 (22:00 +0000)
includes/filerepo/File.php
includes/filerepo/LocalFile.php

index d0d94fa..72eacc4 100644 (file)
@@ -548,7 +548,7 @@ abstract class File {
                        }
                        
                        if ( $wgUseSquid ) {
-                               wfPurgeSquidServers( array( $thumbUrl ) );
+                               SquidUpdate::purge( array( $thumbUrl ) );
                        }
                } while (false);
 
index 87f2e43..871756a 100644 (file)
@@ -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 ) {