mirror of
https://github.com/typemill/typemill.git
synced 2025-08-04 21:27:41 +02:00
Fix issue getting youtube video thumbnails
This commit is contained in:
@@ -466,9 +466,8 @@ class ControllerAuthorMediaApi extends ControllerAuthor
|
||||
$this->params['markdown'] = '{#' . $videoID. ' .' . $class . '}';
|
||||
|
||||
$request = $request->withParsedBody($this->params);
|
||||
|
||||
$block = new ControllerAuthorBlockApi($this->c);
|
||||
if($params['new'])
|
||||
if($this->params['new'])
|
||||
{
|
||||
return $block->addBlock($request, $response, $args);
|
||||
}
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user