r32262 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r32261‎ | r32262 | r32263 >
Date:22:00, 20 March 2008
Author:ialex
Status:old
Tags:
Comment:
Fix call to deprecated functions
Modified paths:
  • /trunk/phase3/includes/filerepo/File.php (modified) (history)
  • /trunk/phase3/includes/filerepo/LocalFile.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/filerepo/LocalFile.php
@@ -548,7 +548,7 @@
549549 $this->purgeThumbnails();
550550
551551 // Purge squid cache for this file
552 - wfPurgeSquidServers( array( $this->getURL() ) );
 552+ SquidUpdate::purge( array( $this->getURL() ) );
553553 }
554554
555555 /**
@@ -572,7 +572,7 @@
573573
574574 // Purge the squid
575575 if ( $wgUseSquid ) {
576 - wfPurgeSquidServers( $urls );
 576+ SquidUpdate::purge( $urls );
577577 }
578578 }
579579
@@ -738,7 +738,7 @@
739739 // Delete thumbnails and refresh the metadata cache
740740 $this->purgeThumbnails();
741741 $this->saveToCache();
742 - wfPurgeSquidServers( array( $this->getURL() ) );
 742+ SquidUpdate::purge( array( $this->getURL() ) );
743743
744744 // Fail now if the file isn't there
745745 if ( !$this->fileExists ) {
Index: trunk/phase3/includes/filerepo/File.php
@@ -548,7 +548,7 @@
549549 }
550550
551551 if ( $wgUseSquid ) {
552 - wfPurgeSquidServers( array( $thumbUrl ) );
 552+ SquidUpdate::purge( array( $thumbUrl ) );
553553 }
554554 } while (false);
555555

Status & tagging log