Added missing File::RENDER_NOW flag to thumb.php
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 2 May 2014 23:33:14 +0000 (16:33 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 2 May 2014 23:33:14 +0000 (16:33 -0700)
Change-Id: I5f05b09272ebcad5cf8409af7ad61d9e9004a2f0

thumb.php

index 3d49a43..59bf8dc 100644 (file)
--- a/thumb.php
+++ b/thumb.php
@@ -394,7 +394,7 @@ function wfGenerateThumbnail( File $file, array $params, $thumbName, $thumbPath
                                        // If the worker that finished made this thumbnail then use it.
                                        // Otherwise, it probably made a different thumbnail for this file.
                                        return $file->getRepo()->fileExists( $thumbPath )
-                                               ? $file->transform( $params )
+                                               ? $file->transform( $params, File::RENDER_NOW )
                                                : false; // retry once more in exclusive mode
                                },
                                'fallback' => function() {