restored language element
This commit is contained in:
parent
a91c042f3e
commit
98a80154e9
1 changed files with 12 additions and 1 deletions
|
@ -215,7 +215,8 @@ class panel {
|
|||
|
||||
function get_option($option,$name,$value="") {
|
||||
|
||||
if($option=="yesno"){
|
||||
global $lang;
|
||||
if($option=="yesno"){
|
||||
$checked["yes"]="";
|
||||
$checked["no"]="";
|
||||
if($value==1||$value==True||$value=="yes"){
|
||||
|
@ -282,6 +283,16 @@ class panel {
|
|||
|
||||
}
|
||||
|
||||
if($option=="language"){
|
||||
$values = array();
|
||||
$langs=$lang->getlanguages();
|
||||
foreach($langs as $lang){
|
||||
$values[$lang['name']]=$lang['short'];
|
||||
}
|
||||
return $this->select($values,$value,$name,"",TRUE);
|
||||
}
|
||||
|
||||
|
||||
if(str_contains($option, "select")){
|
||||
$string=str_replace("select(","",substr($option, 0, -1));
|
||||
$sarr=explode(";",$string);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue