minor fix

master
Jean-Christian Paul Denis 2021-08-19 23:03:53 +02:00
parent 39cd9161e1
commit be7849b94e
3 changed files with 7 additions and 6 deletions

View File

@ -1,10 +1,10 @@
x.x xxxxxxxx x.x xxxxxxxx
- help translation - help translation
- source translation - source translation
- settings page
2021.08.19 2021.08.18
* Fixed PSR-2 Coding Style * Fixed PSR-2 Coding Style
* Move settings to _config file
2018.10.26 - Pierre Van Glabeke 2018.10.26 - Pierre Van Glabeke
* Bug avec php 7.2 (https://forum.dotclear.org/viewtopic.php?pid=342810#p342810) * Bug avec php 7.2 (https://forum.dotclear.org/viewtopic.php?pid=342810#p342810)

View File

@ -19,11 +19,11 @@ $this->registerModule(
'translater', 'translater',
'Translate your Dotclear plugins and themes', 'Translate your Dotclear plugins and themes',
'Jean-Christian Denis & contributors', 'Jean-Christian Denis & contributors',
'2021.08.15', '2021.08.18',
[ [
'permissions' => 'usage,contentadmin,admin', 'permissions' => 'usage,contentadmin,admin',
'type' => 'plugin', 'type' => 'plugin',
'dc_min' => '2.19', 'dc_min' => '2.18',
'support' => 'http://forum.dotclear.org/viewtopic.php?id=39220', 'support' => 'http://forum.dotclear.org/viewtopic.php?id=39220',
'details' => 'https://plugins.dotaddict.org/dc2/details/translater' 'details' => 'https://plugins.dotaddict.org/dc2/details/translater'
] ]

View File

@ -262,7 +262,8 @@ class dcTranslater
$v, $v,
$this->default_settings[$k]['type'], $this->default_settings[$k]['type'],
$this->default_settings[$k]['label'], $this->default_settings[$k]['label'],
true,true true,
true
); );
return true; return true;
} }
@ -327,7 +328,7 @@ class dcTranslater
} }
# Return array of modules infos by type of modules # Return array of modules infos by type of modules
public function listModules($type='') public function listModules($type = '')
{ {
return in_array($type, array('plugin', 'theme')) ? return in_array($type, array('plugin', 'theme')) ?
$this->modules[$type] : $this->modules[$type] :