r21549 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r21548‎ | r21549 | r21550 >
Date:07:39, 25 April 2007
Author:tstarling
Status:old
Tags:
Comment:
Bump cache version
Modified paths:
  • /trunk/phase3/includes/Image.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Image.php
@@ -14,7 +14,7 @@
1515 /**
1616 * Bump this number when serialized cache records may be incompatible.
1717 */
18 -define( 'MW_IMAGE_VERSION', 1 );
 18+define( 'MW_IMAGE_VERSION', 2 );
1919
2020 /**
2121 * Class to represent an image
@@ -935,7 +935,7 @@
936936 $thumb = null;
937937 } elseif ( $thumb->isError() ) {
938938 $this->lastError = $thumb->toText();
939 - if ( $wgIgnoreImageErrors ) {
 939+ if ( $wgIgnoreImageErrors && !($flags & self::RENDER_NOW) ) {
940940 $thumb = $handler->getTransform( $this, $thumbPath, $thumbUrl, $params );
941941 }
942942 }