better to use existing methods

This commit is contained in:
Jean-Christian Denis 2022-12-26 21:29:30 +01:00
parent ea7ac3b83e
commit dc0902658f
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951

View file

@ -169,13 +169,13 @@ try {
echo echo
'<html><head><title>' . __('Translater') . '</title>' . '<html><head><title>' . __('Translater') . '</title>' .
dcPage::jsPageTabs() . dcPage::jsPageTabs() .
dcPage::cssLoad(dcPage::getPF('translater/css/translater.css')) . dcPage::cssModuleLoad('translater/css/translater.css')) .
dcPage::jsJson('translater', [ dcPage::jsJson('translater', [
'title_add_detail' => __('Use this text'), 'title_add_detail' => __('Use this text'),
'image_field' => dcPage::getPF('translater/img/field.png'), 'image_field' => dcPage::getPF('translater/img/field.png'),
'image_toggle' => dcPage::getPF('translater/img/toggle.png'), 'image_toggle' => dcPage::getPF('translater/img/toggle.png'),
]) . ]) .
dcPage::jsLoad(dcPage::getPF('translater/js/translater.js')) . dcPage::jsModuleLoad('translater/js/translater.js') .
# --BEHAVIOR-- translaterAdminHeaders # --BEHAVIOR-- translaterAdminHeaders
dcCore::app()->callBehavior('translaterAdminHeaders') . dcCore::app()->callBehavior('translaterAdminHeaders') .