bug fixes from the day before

This commit is contained in:
Dennis Eichhorn 2022-03-19 00:02:43 +01:00
parent 9cf826e66d
commit bcdf9f281a
2 changed files with 3 additions and 2 deletions

View File

@ -29,14 +29,14 @@ class Media
/**
* Install media providing
*
* @param string $path Module path
* @param ApplicationAbstract $app Application
* @param string $path Module path
*
* @return void
*
* @since 1.0.0
*/
public static function install(string $path, ApplicationAbstract $app) : void
public static function install(ApplicationAbstract $app, string $path) : void
{
\Modules\Media\Admin\Installer::installExternal($app, ['path' => __DIR__ . '/Media.install.json']);
}

View File

@ -182,6 +182,7 @@ final class ApiController extends Controller
public function createWikiDocFromRequest(RequestAbstract $request, ResponseAbstract $response, $data = null) : WikiDoc
{
$doc = new WikiDoc();
$doc->createdBy = new NullAccount($request->header->account);
$doc->name = (string) $request->getData('title');
$doc->doc = Markdown::parse((string) ($request->getData('plain') ?? ''));
$doc->docRaw = (string) ($request->getData('plain') ?? '');