]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
return false to exit event, imgPath holds the path
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 20 Jul 2016 22:27:22 +0000 (00:27 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 20 Jul 2016 22:27:22 +0000 (00:27 +0200)
plugins/VideoThumbnails/VideoThumbnailsPlugin.php

index 30b62677ee73af57cdbbe9d730494ada4ebe1b73..5b96653db1d609c96732d2137fa330f77f223d2c 100644 (file)
@@ -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) {