From: Brion Vibber Date: Sun, 29 Oct 2006 18:04:11 +0000 (+0000) Subject: * Fix purging for updated SVG files X-Git-Tag: 1.31.0-rc.0~55359 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=68ce1cb3bf751198e4d5123b6524c1045294e384;p=lhc%2Fweb%2Fwiklou.git * Fix purging for updated SVG files 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. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index f7226377e4..67510f27a3 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/Image.php b/includes/Image.php index 337d09c5d6..b2a63968ae 100644 --- a/includes/Image.php +++ b/includes/Image.php @@ -1369,7 +1369,7 @@ class Image // Purge the squid if ( $wgUseSquid ) { - $urls[] = $this->getViewURL(); + $urls[] = $this->getURL(); foreach ( $archiveFiles as $file ) { $urls[] = wfImageArchiveUrl( $file ); }