Use getUrl()
authorAaron Schulz <aaron@users.mediawiki.org>
Fri, 2 May 2008 21:32:13 +0000 (21:32 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Fri, 2 May 2008 21:32:13 +0000 (21:32 +0000)
includes/filerepo/File.php

index d1b0cd5..7815722 100644 (file)
@@ -550,7 +550,7 @@ abstract class File {
                        // Purge. Useful in the event of Core -> Squid connection failure or squid 
                        // purge collisions from elsewhere during failure. Don't keep triggering for 
                        // "thumbs" which have the main image URL though (bug 13776)
-                       if ( $wgUseSquid && !$thumb->isError() && $thumb->url != $this->getURL() ) {
+                       if ( $wgUseSquid && !$thumb->isError() && $thumb->getUrl() != $this->getURL() ) {
                                SquidUpdate::purge( array( $thumbUrl ) );
                        }
                } while (false);