mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Fix
This commit is contained in:
parent
d84fd998f6
commit
4634b674b6
1 changed files with 2 additions and 1 deletions
|
@ -26,6 +26,7 @@ class Select
|
||||||
{
|
{
|
||||||
global $bb_cfg;
|
global $bb_cfg;
|
||||||
|
|
||||||
|
$lang_default = reset($bb_cfg['lang']);
|
||||||
$lang_select = '<select name="' . $select_name . '">';
|
$lang_select = '<select name="' . $select_name . '">';
|
||||||
$x = 0;
|
$x = 0;
|
||||||
foreach ($bb_cfg['lang'] as $key => $data) {
|
foreach ($bb_cfg['lang'] as $key => $data) {
|
||||||
|
@ -37,7 +38,7 @@ class Select
|
||||||
$x++;
|
$x++;
|
||||||
}
|
}
|
||||||
$lang_select .= '</select>';
|
$lang_select .= '</select>';
|
||||||
return ($x > 1) ? $lang_select : reset($bb_cfg['lang']);
|
return ($x > 1) ? $lang_select : $lang_default['name'];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue