r17288 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r17287‎ | r17288 | r17289 >
Date:18:04, 29 October 2006
Author:brion
Status:old
Tags:
Comment:
* 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.
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/Image.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Image.php
@@ -1369,7 +1369,7 @@
13701370
13711371 // Purge the squid
13721372 if ( $wgUseSquid ) {
1373 - $urls[] = $this->getViewURL();
 1373+ $urls[] = $this->getURL();
13741374 foreach ( $archiveFiles as $file ) {
13751375 $urls[] = wfImageArchiveUrl( $file );
13761376 }
Index: trunk/phase3/RELEASE-NOTES
@@ -101,6 +101,7 @@
102102 user talk pages. This can be disabled by adjusting the 'nominornewtalk'
103103 permission. Patch by Werdna.
104104 * (bug 7741) MATH: fixed broken syntax of underbrace etc. Fixed arrays
 105+* Fix purging for updated SVG files
105106
106107
107108 == Languages updated ==