* Fix purging for updated SVG files
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 29 Oct 2006 18:04:11 +0000 (18:04 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 29 Oct 2006 18:04:11 +0000 (18:04 +0000)
Purging was using getViewUrl(), which is a generated thumbnail for SVG and other render-only formats.
Switched to using getUrl(), which returns the file itself. The thumb will be separately covered as is.

RELEASE-NOTES
includes/Image.php

index f722637..67510f2 100644 (file)
@@ -101,6 +101,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   user talk pages. This can be disabled by adjusting the 'nominornewtalk'
   permission. Patch by Werdna.
 * (bug 7741) MATH: fixed broken syntax of underbrace etc. Fixed arrays
+* Fix purging for updated SVG files
 
 
 == Languages updated ==
index 337d09c..b2a6396 100644 (file)
@@ -1369,7 +1369,7 @@ class Image
 
                // Purge the squid
                if ( $wgUseSquid ) {
-                       $urls[] = $this->getViewURL();
+                       $urls[] = $this->getURL();
                        foreach ( $archiveFiles as $file ) {
                                $urls[] = wfImageArchiveUrl( $file );
                        }