corection lang
This commit is contained in:
parent
e9e5163789
commit
93fd5c9e7d
@ -1036,7 +1036,7 @@ class FormSetupItem
|
|||||||
*/
|
*/
|
||||||
public function generateOutputField()
|
public function generateOutputField()
|
||||||
{
|
{
|
||||||
global $conf, $user;
|
global $conf, $user, $langs;
|
||||||
|
|
||||||
if (!empty($this->fieldOverride)) {
|
if (!empty($this->fieldOverride)) {
|
||||||
return $this->fieldOverride;
|
return $this->fieldOverride;
|
||||||
@ -1064,10 +1064,10 @@ class FormSetupItem
|
|||||||
if (!empty($conf->use_javascript_ajax)) {
|
if (!empty($conf->use_javascript_ajax)) {
|
||||||
$out.= ajax_constantonoff($this->confKey);
|
$out.= ajax_constantonoff($this->confKey);
|
||||||
} else {
|
} else {
|
||||||
if ($this->confKey == 1) {
|
if ($this->fieldValue == 1) {
|
||||||
$out.= $this->langs('yes');
|
$out.= $langs->trans('yes');
|
||||||
} else {
|
} else {
|
||||||
$out.= $this->langs('no');
|
$out.= $langs->trans('no');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} elseif (preg_match('/emailtemplate:/', $this->type)) {
|
} elseif (preg_match('/emailtemplate:/', $this->type)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user