mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
showConfigText() checks if translation for <key>_placeholder exists
This commit is contained in:
parent
fe5a2d1add
commit
74af17c020
|
@ -115,7 +115,11 @@ class SeedDMS_View_Settings extends SeedDMS_Theme_Style {
|
|||
/**
|
||||
* Show a text input configuration option
|
||||
*
|
||||
* @param string $title title of the option
|
||||
* The parameter $title is the key of the language phrase. {$title}_desc
|
||||
* is the description and {$title}_placeholder will be used as placeholder,
|
||||
* if $placeholder is not set.
|
||||
*
|
||||
* @param string $title title key of the option
|
||||
* @param string $name name of html input field
|
||||
* @param string $type can be 'password', 'array'
|
||||
* @param string $placeholder placeholder for input field
|
||||
|
@ -132,7 +136,7 @@ class SeedDMS_View_Settings extends SeedDMS_Theme_Style {
|
|||
$value = $settings->{"_".$name};
|
||||
echo " <td>";
|
||||
if($this->isVisible($name))
|
||||
$this->showTextField($name, $value, ($type=='password' || $type=='textarea' ? $type : ''), $placeholder);
|
||||
$this->showTextField($name, $value, ($type=='password' || $type=='textarea' ? $type : ''), $placeholder ? $placeholder : getMLText($title."_placeholder", [], ""));
|
||||
else
|
||||
echo getMLText('settings_conf_field_not_editable');
|
||||
echo "</td>\n";
|
||||
|
|
Loading…
Reference in New Issue
Block a user