mirror of
https://github.com/Karaka-Management/oms-Knowledgebase.git
synced 2026-01-20 13:28:42 +00:00
bug fixes from the day before
This commit is contained in:
parent
9cf826e66d
commit
bcdf9f281a
|
|
@ -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']);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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') ?? '');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user