1
0
mirror of https://github.com/typemill/typemill.git synced 2025-08-08 23:26:34 +02:00

Fix issue getting youtube video thumbnails

This commit is contained in:
Andreas
2021-11-26 23:23:10 +01:00
parent cdeb76ccd5
commit 2521ca3793
2 changed files with 2 additions and 4 deletions

View File

@@ -105,8 +105,7 @@ class ProcessAssets
public function setFileName($originalname, $type, $overwrite = NULL)
{
$pathinfo = pathinfo($originalname);
$this->extension = strtolower($pathinfo['extension']);
$this->extension = isset($pathinfo['extension']) ? strtolower($pathinfo['extension']) : null;
$this->filename = Folder::createSlug($pathinfo['filename']);
$filename = $this->filename;