diff --git a/src/Manage.php b/src/Manage.php index 0ffa8a8..1459b98 100644 --- a/src/Manage.php +++ b/src/Manage.php @@ -74,7 +74,7 @@ class Manage extends dcNsProcess if (!dcCore::app()->error->flag()) { dcPage::addSuccessNotice(__('The new template has been successfully created.')); - dcCore::app()->adminurl->redirect('admin.plugin.templator'); + dcCore::app()->adminurl->redirect('admin.plugin.' . My::id()); } } catch (Exception $e) { dcCore::app()->error->add($e->getMessage()); @@ -93,7 +93,7 @@ class Manage extends dcNsProcess if (!dcCore::app()->error->flag()) { dcPage::addSuccessNotice(__('The template has been successfully copied.')); - dcCore::app()->adminurl->redirect('admin.plugin.templator', ['part' => 'files']); + dcCore::app()->adminurl->redirect('admin.plugin.' . My::id(), ['part' => 'files']); } } catch (Exception $e) { dcCore::app()->error->add($e->getMessage()); @@ -112,7 +112,7 @@ class Manage extends dcNsProcess if (!dcCore::app()->error->flag()) { dcPage::addSuccessNotice(__('The template has been successfully copied.')); - dcCore::app()->adminurl->redirect('admin.plugin.templator', ['part' => 'files']); + dcCore::app()->adminurl->redirect('admin.plugin.' . My::id(), ['part' => 'files']); } } catch (Exception $e) { dcCore::app()->error->add($e->getMessage()); @@ -130,7 +130,7 @@ class Manage extends dcNsProcess if (!dcCore::app()->error->flag()) { dcPage::addSuccessNotice(__('The template has been successfully removed.')); - dcCore::app()->adminurl->redirect('admin.plugin.templator', ['part' => 'files']); + dcCore::app()->adminurl->redirect('admin.plugin.' . My::id(), ['part' => 'files']); } } catch (Exception $e) { dcCore::app()->error->add($e->getMessage()); @@ -161,13 +161,11 @@ class Manage extends dcNsProcess if (!$t->canUseRessources(true)) { dcCore::app()->error->add(__('The plugin is unusable with your configuration. You have to change file permissions.')); + dcPage::openModule(My::name()); echo - '
' . __('No template.') . '
'; } else { // reuse "used templatro template" filter settings - $filter = new adminGenericFilterV2('templator'); + $filter = new adminGenericFilterV2(My::id()); $filter->add(dcAdminFilters::getPageFilter()); $page = is_numeric($filter->value('page')) ? (int) $filter->value('page') : 1; $nb = is_numeric($filter->value('nb')) ? (int) $filter->value('nb') : 1; @@ -370,10 +363,10 @@ class Manage extends dcNsProcess $cols[$col] .= '