From d230d332cf392edfda823d29c93489e2ef739a96 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Thu, 21 Jul 2016 00:27:22 +0200 Subject: [PATCH] return false to exit event, imgPath holds the path --- plugins/VideoThumbnails/VideoThumbnailsPlugin.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/VideoThumbnails/VideoThumbnailsPlugin.php b/plugins/VideoThumbnails/VideoThumbnailsPlugin.php index 30b62677ee..5b96653db1 100644 --- a/plugins/VideoThumbnails/VideoThumbnailsPlugin.php +++ b/plugins/VideoThumbnails/VideoThumbnailsPlugin.php @@ -58,8 +58,9 @@ class VideoThumbnailsPlugin extends Plugin try { // Exception thrown if no thumbnail found $thumb = File_thumbnail::byFile($file, false); - // If getPath doesn't throw an exception, we have a working locally stored thumbnail - return $thumb->getPath(); + $imgPath = $thumb->getPath(); + // If getPath didn't throw an exception, we have a working locally stored thumbnail + return false; } catch (NoResultException $e) { // Alright, no thumbnail found, so let's create one. } catch (InvalidFilenameException $e) { -- 2.39.5