1
0
mirror of https://github.com/typemill/typemill.git synced 2025-07-30 10:50:17 +02:00

Merge pull request #284 from Alex-Blk/patch-1

Update ControllerAuthorMediaApi.php
This commit is contained in:
trendschau
2021-10-15 12:48:19 +02:00
committed by GitHub

View File

@@ -6,7 +6,7 @@ use Slim\Http\Request;
use Slim\Http\Response;
use Typemill\Models\ProcessImage;
use Typemill\Models\ProcessFile;
use Typemill\Controllers\BlockApiController;
use Typemill\Controllers\ControllerAuthorBlockApi;
class ControllerAuthorMediaApi extends ControllerAuthor
{
@@ -235,7 +235,7 @@ class ControllerAuthorMediaApi extends ControllerAuthor
{
$request = $request->withParsedBody($params);
$block = new BlockApiController($this->c);
$block = new ControllerAuthorBlockApi($this->c);
if($params['new'])
{
return $block->addBlock($request, $response, $args);
@@ -260,7 +260,7 @@ class ControllerAuthorMediaApi extends ControllerAuthor
{
$request = $request->withParsedBody($params);
$block = new BlockApiController($this->c);
$block = new ControllerAuthorBlockApi($this->c);
if($params['new'])
{
return $block->addBlock($request, $response, $args);
@@ -396,7 +396,7 @@ class ControllerAuthorMediaApi extends ControllerAuthor
$request = $request->withParsedBody($this->params);
$block = new BlockApiController($this->c);
$block = new ControllerAuthorBlockApi($this->c);
if($params['new'])
{
return $block->addBlock($request, $response, $args);
@@ -505,4 +505,4 @@ class ControllerAuthorMediaApi extends ControllerAuthor
'video/3gpp' => '3gp',
);
}
}
}