diff --git a/phpBB/includes/functions_selects.php b/phpBB/includes/functions_selects.php index 9207094348..f669b27499 100644 --- a/phpBB/includes/functions_selects.php +++ b/phpBB/includes/functions_selects.php @@ -26,9 +26,9 @@ // function language_select($default, $select_name = "language", $dirname="language") { - global $phpEx; + global $phpEx, $phpbb_root_path; - $dir = opendir($dirname); + $dir = opendir($phpbb_root_path . $dirname); $lang = array(); while ( $file = readdir($dir) ) @@ -108,4 +108,4 @@ function tz_select($default, $select_name = 'timezone') return $tz_select; } -?> \ No newline at end of file +?>