mirror of
https://github.com/Karaka-Management/oms-Navigation.git
synced 2026-01-11 16:18:42 +00:00
Restructure
This commit is contained in:
parent
425b75621f
commit
64ef1614e5
|
|
@ -15,7 +15,7 @@
|
|||
*/
|
||||
namespace Modules\Navigation\Admin;
|
||||
|
||||
use phpOMS\DataStorage\Database\DatabaseType;
|
||||
|
||||
use phpOMS\DataStorage\Database\Pool;
|
||||
use phpOMS\Module\ActivateAbstract;
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
*/
|
||||
namespace Modules\Navigation\Admin;
|
||||
|
||||
use phpOMS\DataStorage\Database\DatabaseType;
|
||||
|
||||
use phpOMS\DataStorage\Database\Pool;
|
||||
use phpOMS\Module\DeactivateAbstract;
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
*/
|
||||
namespace Modules\Navigation\Admin;
|
||||
|
||||
use phpOMS\DataStorage\Database\DatabaseType;
|
||||
|
||||
use phpOMS\DataStorage\Database\Pool;
|
||||
use phpOMS\Module\UninstallAbstract;
|
||||
|
||||
|
|
|
|||
|
|
@ -15,9 +15,10 @@
|
|||
*/
|
||||
namespace Modules\Navigation\Admin;
|
||||
|
||||
use phpOMS\DataStorage\Database\DatabaseType;
|
||||
|
||||
use phpOMS\DataStorage\Database\Pool;
|
||||
use phpOMS\Module\UpdateAbstract;
|
||||
use phpOMS\System\FileSystem;
|
||||
|
||||
/**
|
||||
* Navigation class.
|
||||
|
|
@ -38,6 +39,8 @@ class Update extends UpdateAbstract
|
|||
*/
|
||||
public static function update(Pool $dbPool, array $info)
|
||||
{
|
||||
FileSystem::deletePath(__DIR__ . '/Update');
|
||||
mkdir('Update');
|
||||
parent::update($dbPool, $info);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
* @var \string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $module = 'Navigation';
|
||||
const MODULE_NAME = 'Navigation';
|
||||
|
||||
/**
|
||||
* Localization files.
|
||||
|
|
@ -155,7 +155,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
$language = $this->app->accountManager->get($request->getAccount())->getL11n()->getLanguage();
|
||||
|
||||
foreach ($modules as $id => $module) {
|
||||
$this->app->accountManager->get($request->getAccount())->getL11n()->loadLanguage($language, 'nav.backend', $module[0]['module_path']);
|
||||
$this->app->accountManager->get($request->getAccount())->getL11n()->loadLanguage($language, 'Navigation', $module[0]['module_path']);
|
||||
}
|
||||
|
||||
if (!empty($this->nav)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user