From be7849b94e6e334723860869d488950a8a66b44c Mon Sep 17 00:00:00 2001 From: JcDenis Date: Thu, 19 Aug 2021 23:03:53 +0200 Subject: [PATCH] minor fix --- CHANGELOG.md | 4 ++-- _define.php | 4 ++-- inc/class.dc.translater.php | 5 +++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 20cba0d..739c4c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,10 @@ x.x xxxxxxxx - help translation - source translation - - settings page -2021.08.19 +2021.08.18 * Fixed PSR-2 Coding Style + * Move settings to _config file 2018.10.26 - Pierre Van Glabeke * Bug avec php 7.2 (https://forum.dotclear.org/viewtopic.php?pid=342810#p342810) diff --git a/_define.php b/_define.php index 8bac4fb..649cf09 100644 --- a/_define.php +++ b/_define.php @@ -19,11 +19,11 @@ $this->registerModule( 'translater', 'Translate your Dotclear plugins and themes', 'Jean-Christian Denis & contributors', - '2021.08.15', + '2021.08.18', [ 'permissions' => 'usage,contentadmin,admin', 'type' => 'plugin', - 'dc_min' => '2.19', + 'dc_min' => '2.18', 'support' => 'http://forum.dotclear.org/viewtopic.php?id=39220', 'details' => 'https://plugins.dotaddict.org/dc2/details/translater' ] diff --git a/inc/class.dc.translater.php b/inc/class.dc.translater.php index 0e922a5..33d27dc 100644 --- a/inc/class.dc.translater.php +++ b/inc/class.dc.translater.php @@ -262,7 +262,8 @@ class dcTranslater $v, $this->default_settings[$k]['type'], $this->default_settings[$k]['label'], - true,true + true, + true ); return true; } @@ -327,7 +328,7 @@ class dcTranslater } # Return array of modules infos by type of modules - public function listModules($type='') + public function listModules($type = '') { return in_array($type, array('plugin', 'theme')) ? $this->modules[$type] :