diff --git a/src/Config.php b/src/Config.php
index 0e2295a..994dcfd 100644
--- a/src/Config.php
+++ b/src/Config.php
@@ -29,7 +29,6 @@ use Dotclear\Helper\Html\Form\{
Para,
Select
};
-use Dotclear\Helper\Html\Html;
use Exception;
class Config extends dcNsProcess
diff --git a/src/Install.php b/src/Install.php
index 7cfa751..5920975 100644
--- a/src/Install.php
+++ b/src/Install.php
@@ -64,7 +64,7 @@ class Install extends dcNsProcess
);
while ($record->fetch()) {
if (preg_match('/^translater_(.*?)$/', $record->f('setting_id'), $match)) {
- $cur = dcCore::app()->con->openCursor(dcCore::app()->prefix . dcNamespace::NS_TABLE_NAME);
+ $cur = dcCore::app()->con->openCursor(dcCore::app()->prefix . dcNamespace::NS_TABLE_NAME);
$cur->setField('setting_id', $match[1]);
$cur->setField('setting_ns', My::id());
$cur->update(
diff --git a/src/Manage.php b/src/Manage.php
index 29c50ca..a2fdb81 100644
--- a/src/Manage.php
+++ b/src/Manage.php
@@ -321,16 +321,18 @@ class Manage extends dcNsProcess
' .
- (new Para())->class('col right')->items(array_merge([
- (new Text('', __('Selected languages action:'))),
- (new Select('action'))->items([
- __('Backup languages') => 'module_create_backups',
- __('Delete languages') => 'module_delete_codes',
- __('Export languages') => 'module_export_pack',
- ]),
- (new Submit('do-action'))->value(__('ok')),
- dcCore::app()->formNonce(false),
- ], dcCore::app()->adminurl?->hiddenFormFields(
+ (new Para())->class('col right')->items(array_merge(
+ [
+ (new Text('', __('Selected languages action:'))),
+ (new Select('action'))->items([
+ __('Backup languages') => 'module_create_backups',
+ __('Delete languages') => 'module_delete_codes',
+ __('Export languages') => 'module_export_pack',
+ ]),
+ (new Submit('do-action'))->value(__('ok')),
+ dcCore::app()->formNonce(false),
+ ],
+ dcCore::app()->adminurl?->hiddenFormFields(
My::id(),
['type' => $current->module->type, 'module' => $current->module->id]
)
@@ -389,15 +391,17 @@ class Manage extends dcNsProcess
' .
- (new Para())->class('col right')->items(array_merge([
- (new Text('', __('Selected backups action:'))),
- (new Select('action'))->items([
- __('Restore backups') => 'module_restore_backup',
- __('Delete backups') => 'module_delete_backup',
- ]),
- (new Submit('do-action'))->value(__('ok')),
- dcCore::app()->formNonce(false),
- ], dcCore::app()->adminurl?->hiddenFormFields(
+ (new Para())->class('col right')->items(array_merge(
+ [
+ (new Text('', __('Selected backups action:'))),
+ (new Select('action'))->items([
+ __('Restore backups') => 'module_restore_backup',
+ __('Delete backups') => 'module_delete_backup',
+ ]),
+ (new Submit('do-action'))->value(__('ok')),
+ dcCore::app()->formNonce(false),
+ ],
+ dcCore::app()->adminurl?->hiddenFormFields(
My::id(),
['type' => $current->module->type, 'module' => $current->module->id]
)
@@ -427,11 +431,13 @@ class Manage extends dcNsProcess
(new Note())->class('form-note')->text(__('optionnal')),
])->render();
}
- echo
- (new Para())->items(array_merge([
- (new Submit(['save']))->value(__('Create')),
- dcCore::app()->formNonce(false),
- ], dcCore::app()->adminurl?->hiddenFormFields(
+ echo
+ (new Para())->items(array_merge(
+ [
+ (new Submit(['save']))->value(__('Create')),
+ dcCore::app()->formNonce(false),
+ ],
+ dcCore::app()->adminurl?->hiddenFormFields(
My::id(),
['type' => $current->module->type, 'module' => $current->module->id, 'action' => 'module_add_code']
)
@@ -447,10 +453,12 @@ class Manage extends dcNsProcess
(new File('packfile')),
]),
- (new Para())->items(array_merge([
- (new Submit(['save']))->value(__('Import')),
- dcCore::app()->formNonce(false),
- ], dcCore::app()->adminurl?->hiddenFormFields(
+ (new Para())->items(array_merge(
+ [
+ (new Submit(['save']))->value(__('Import')),
+ dcCore::app()->formNonce(false),
+ ],
+ dcCore::app()->adminurl?->hiddenFormFields(
My::id(),
['type' => $current->module->type, 'module' => $current->module->id, 'action' => 'module_import_pack']
)
@@ -590,11 +598,13 @@ class Manage extends dcNsProcess
(new Select('multigroup'))->items(My::l10nGroupsCombo()),
])->render() .
'
' .
- (new Para())->class('col right')->items(array_merge([
- (new Submit('do-action'))->value(__('Save') . ' (s)')->accesskey('s'),
- dcCore::app()->formNonce(false),
- (new Hidden(['code'], $current->lang->code)),
- ], dcCore::app()->adminurl?->hiddenFormFields(
+ (new Para())->class('col right')->items(array_merge(
+ [
+ (new Submit('do-action'))->value(__('Save') . ' (s)')->accesskey('s'),
+ dcCore::app()->formNonce(false),
+ (new Hidden(['code'], $current->lang->code)),
+ ],
+ dcCore::app()->adminurl?->hiddenFormFields(
My::id(),
['type' => $current->module?->type, 'module' => $current->module?->id, 'lang' => $current->lang->code, 'action' => 'module_update_code']
)