From: jenkins-bot Date: Thu, 28 Aug 2014 07:43:26 +0000 (+0000) Subject: Merge "Making missing old files not try to render a thumbnail" X-Git-Tag: 1.31.0-rc.0~14249 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/?a=commitdiff_plain;h=48d433b102e636644d833e408ba028880f90f62a;hp=-c;p=lhc%2Fweb%2Fwiklou.git Merge "Making missing old files not try to render a thumbnail" --- 48d433b102e636644d833e408ba028880f90f62a diff --combined includes/filerepo/file/File.php index 4fab33b9ec,d81bedcf65..ba2d4ac895 --- a/includes/filerepo/file/File.php +++ b/includes/filerepo/file/File.php @@@ -679,7 -679,7 +679,7 @@@ abstract class File } /** - * Returns the mime type of the file. + * Returns the MIME type of the file. * Overridden by LocalFile, UnregisteredLocalFile * STUB * @@@ -714,7 -714,7 +714,7 @@@ */ 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; @@@ -1261,7 -1261,7 +1261,7 @@@ /** * Creates a temp FS file with the same extension and the thumbnail * @param string $thumbPath Thumbnail path - * @returns TempFSFile + * @return TempFSFile */ protected function makeTransformTmpFile( $thumbPath ) { $thumbExt = FileBackend::extensionFromPath( $thumbPath ); @@@ -1287,7 -1287,6 +1287,7 @@@ * Hook into transform() to allow migration of thumbnail files * STUB * Overridden by LocalFile + * @param string $thumbName */ function migrateThumbFile( $thumbName ) { } @@@ -1331,7 -1330,6 +1331,7 @@@ /** * Get last thumbnailing error. * Largely obsolete. + * @return string */ function getLastError() { return $this->lastError; @@@ -1939,7 -1937,7 +1939,7 @@@ * @note Use getWidth()/getHeight() instead of this method unless you have a * a good reason. This method skips all caches. * - * @param string $fileName The path to the file (e.g. From getLocalPathRef() ) + * @param string $filePath The path to the file (e.g. From getLocalPathRef() ) * @return array The width, followed by height, with optionally more things after */ function getImageSize( $filePath ) {