update code toward php8 compliance

This commit is contained in:
Philippe GRAND 2022-09-24 14:56:01 +02:00
parent 32b37718c7
commit 7cca9f5c14
5 changed files with 5 additions and 5 deletions

View File

@ -211,7 +211,7 @@ for ($i = 1; $i <= 4; $i++) {
<td><?php echo $this->control->tpl['select_workforce']; echo $this->control->tpl['info_admin']; ?></td>
</tr>
<?php if (!empty($conf->global->MAIN_MULTILANGS)) { ?>
<?php if (getDolGlobalInt('MAIN_MULTILANGS')) { ?>
<tr>
<td><?php echo $langs->trans("DefaultLang"); ?></td>
<td colspan="3"><?php echo $this->control->tpl['select_lang']; ?></td>

View File

@ -190,7 +190,7 @@ for ($i = 1; $i <= 4; $i++) {
<td><?php echo $this->control->tpl['effectif']; ?></td>
</tr>
<?php if (!empty($conf->global->MAIN_MULTILANGS)) { ?>
<?php if (getDolGlobalInt('MAIN_MULTILANGS')) { ?>
<tr>
<td><?php echo $langs->trans("DefaultLang"); ?></td>
<td colspan="3"><?php echo $this->control->tpl['default_lang']; ?></td>

View File

@ -156,7 +156,7 @@ if (isModEnabled('barcode')) { ?>
<td><input type="text" name="url" size="32" value="<?php echo $this->control->tpl['url']; ?>"></td>
</tr>
<?php if (!empty($conf->global->MAIN_MULTILANGS)) { ?>
<?php if (getDolGlobalInt('MAIN_MULTILANGS')) { ?>
<tr>
<td><?php echo $langs->trans("DefaultLang"); ?></td>
<td colspan="3"><?php echo $this->control->tpl['select_lang']; ?></td>

View File

@ -160,7 +160,7 @@ if ($this->control->tpl['fournisseur']) {
<td><input type="text" name="url" size="32" value="<?php echo $this->control->tpl['url']; ?>"></td>
</tr>
<?php if (!empty($conf->global->MAIN_MULTILANGS)) { ?>
<?php if (getDolGlobalInt('MAIN_MULTILANGS')) { ?>
<tr>
<td><?php echo $langs->trans("DefaultLang"); ?></td>
<td colspan="3"><?php echo $this->control->tpl['select_lang']; ?></td>

View File

@ -131,7 +131,7 @@ if ($this->control->tpl['action_delete']) {
<td colspan="3"><?php echo $this->control->tpl['typent']; ?></td>
</tr>
<?php if (!empty($conf->global->MAIN_MULTILANGS)) { ?>
<?php if (getDolGlobalInt('MAIN_MULTILANGS')) { ?>
<tr>
<td><?php echo $langs->trans("DefaultLang"); ?></td>
<td colspan="3"><?php echo $this->control->tpl['default_lang']; ?></td>