diff --git a/upload/includes/functions_selects.php b/upload/includes/functions_selects.php index f982d6652..cedbd04f3 100644 --- a/upload/includes/functions_selects.php +++ b/upload/includes/functions_selects.php @@ -28,6 +28,9 @@ if (!defined('BB_ROOT')) die(basename(__FILE__)); // function language_select($default, $select_name = "language", $dirname="language") { + global $bb_cfg; + if(!$default) $default = $bb_cfg['default_lang']; + $dir = opendir(BB_ROOT . $dirname); $lang = array();