mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 08:55:54 +00:00
show a message if conf var is disabled, but do not hide it completely
This commit is contained in:
parent
8c130c06e4
commit
b0478bec3c
|
@ -115,8 +115,6 @@ class SeedDMS_View_Settings extends SeedDMS_Theme_Style {
|
|||
*/
|
||||
protected function showConfigText($title, $name, $type='', $placeholder='') { /* {{{ */
|
||||
$settings = $this->params['settings'];
|
||||
if(!$this->isVisible($name))
|
||||
return;
|
||||
?>
|
||||
<tr title="<?= getMLText($title."_desc") ?>">
|
||||
<td><?= getMLText($title) ?>:</td>
|
||||
|
@ -125,8 +123,13 @@ class SeedDMS_View_Settings extends SeedDMS_Theme_Style {
|
|||
$value = $settings->arrayToString($settings->{"_".$name});
|
||||
else
|
||||
$value = $settings->{"_".$name};
|
||||
echo " <td>";
|
||||
if($this->isVisible($name))
|
||||
$this->showTextField($name, $value, ($type=='password' || $type=='textarea' ? $type : ''), $placeholder);
|
||||
else
|
||||
echo getMLText('settings_conf_field_not_editable');
|
||||
echo "</td>\n";
|
||||
?>
|
||||
<td><?php $this->showTextField($name, $value, ($type=='password' || $type=='textarea' ? $type : ''), $placeholder); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
} /* }}} */
|
||||
|
|
Loading…
Reference in New Issue
Block a user