mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-02-09 15:08:40 +00:00
Fix minor bugs for full inspections
This commit is contained in:
parent
b76c1e7ac4
commit
ae5da3576f
|
|
@ -16,6 +16,7 @@ namespace Modules\Editor\Admin;
|
||||||
|
|
||||||
use phpOMS\DataStorage\Database\DatabasePool;
|
use phpOMS\DataStorage\Database\DatabasePool;
|
||||||
use phpOMS\Module\UninstallAbstract;
|
use phpOMS\Module\UninstallAbstract;
|
||||||
|
use phpOMS\Module\InfoManager;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Navigation class.
|
* Navigation class.
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,8 @@ namespace Modules\Editor\Admin;
|
||||||
use phpOMS\DataStorage\Database\DatabasePool;
|
use phpOMS\DataStorage\Database\DatabasePool;
|
||||||
use phpOMS\Module\UpdateAbstract;
|
use phpOMS\Module\UpdateAbstract;
|
||||||
use phpOMS\System\File\Directory;
|
use phpOMS\System\File\Directory;
|
||||||
|
use phpOMS\Module\InfoManager;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Navigation class.
|
* Navigation class.
|
||||||
|
|
@ -33,7 +35,7 @@ class Update extends UpdateAbstract
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public static function update(DatabasePool $dbPool, array $info)
|
public static function update(DatabasePool $dbPool, InfoManager $info)
|
||||||
{
|
{
|
||||||
Directory::deletePath(__DIR__ . '/Update');
|
Directory::deletePath(__DIR__ . '/Update');
|
||||||
mkdir('Update');
|
mkdir('Update');
|
||||||
|
|
|
||||||
|
|
@ -241,7 +241,7 @@ class EditorDoc implements ArrayableInterface, \JsonSerializable
|
||||||
'title' => $this->title,
|
'title' => $this->title,
|
||||||
'plain' => $this->plain,
|
'plain' => $this->plain,
|
||||||
'content' => $this->content,
|
'content' => $this->content,
|
||||||
'createdAt' => $this->createdAt,
|
'createdAt' => $this->createdAt->format('Y-m-d H:i:s'),
|
||||||
'createdBy' => $this->createdBy,
|
'createdBy' => $this->createdBy,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user