Bugfixes, trying to get it functional
This commit is contained in:
parent
40187efb4a
commit
5b22537c44
1 changed files with 5 additions and 2 deletions
|
@ -6,7 +6,10 @@ class lang{
|
||||||
|
|
||||||
function __construct(){
|
function __construct(){
|
||||||
global $lf;
|
global $lf;
|
||||||
$language=$_COOKIE['astat_install_lang'];
|
$language = "";
|
||||||
|
if(isset($_COOKIE['bcwe_install_lang'])) {
|
||||||
|
$language = $_COOKIE['bcwe_install_lang'];
|
||||||
|
}
|
||||||
if(!$language || $language==''){
|
if(!$language || $language==''){
|
||||||
$lang=$this->getbrowserlang();
|
$lang=$this->getbrowserlang();
|
||||||
if(!$lang){
|
if(!$lang){
|
||||||
|
@ -82,7 +85,7 @@ class lang{
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@closedir($langdir);
|
@closedir($langs);
|
||||||
return($langfile);
|
return($langfile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue