Merge "Making missing old files not try to render a thumbnail"
[lhc/web/wiklou.git] / includes / filerepo / file / File.php
index 4fab33b..ba2d4ac 100644 (file)
@@ -714,7 +714,7 @@ abstract class File {
         */
        function canRender() {
                if ( !isset( $this->canRender ) ) {
-                       $this->canRender = $this->getHandler() && $this->handler->canRender( $this );
+                       $this->canRender = $this->getHandler() && $this->handler->canRender( $this ) && $this->exists();
                }
 
                return $this->canRender;