mediawiki.api.watch: Use postWithToken to recover from an invalid token
[lhc/web/wiklou.git] / 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() {