restored language element
This commit is contained in:
parent
a91c042f3e
commit
98a80154e9
1 changed files with 12 additions and 1 deletions
|
@ -215,6 +215,7 @@ class panel {
|
||||||
|
|
||||||
function get_option($option,$name,$value="") {
|
function get_option($option,$name,$value="") {
|
||||||
|
|
||||||
|
global $lang;
|
||||||
if($option=="yesno"){
|
if($option=="yesno"){
|
||||||
$checked["yes"]="";
|
$checked["yes"]="";
|
||||||
$checked["no"]="";
|
$checked["no"]="";
|
||||||
|
@ -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")){
|
if(str_contains($option, "select")){
|
||||||
$string=str_replace("select(","",substr($option, 0, -1));
|
$string=str_replace("select(","",substr($option, 0, -1));
|
||||||
$sarr=explode(";",$string);
|
$sarr=explode(";",$string);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue