diff --git a/Admin/Install/Media.php b/Admin/Install/Media.php index ca72ba1..9b0faed 100755 --- a/Admin/Install/Media.php +++ b/Admin/Install/Media.php @@ -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']); } diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 871f592..0aff3b8 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -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') ?? '');