Skip to content

Commit 185ddd4

Browse files
authored
Fix for get_language_file issue
Fix for get_language_file issue #30
1 parent f4324de commit 185ddd4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

inc/functions.inc.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,8 +1289,10 @@ function get_customize_languages()
12891289
}
12901290

12911291
// to prevent file not found or case sensitive SO errors
1292-
function get_language_file($path = '.' . DIRECTORY_SEPARATOR . 'lang')
1293-
{
1292+
function get_language_file($path) {
1293+
if ($path == null) {
1294+
$path = '.' . DIRECTORY_SEPARATOR . 'lang';
1295+
}
12941296
$fileLang = $path. DIRECTORY_SEPARATOR . (isset($_SESSION['s_cust']['language']) && !empty($_SESSION['s_cust']['language']) && ($_SESSION['s_cust']['language'] != 1) ? $_SESSION['s_cust']['language'] : LANGUAGE).'.inc.php';
12951297
if (file_exists($fileLang)){
12961298
return $fileLang;

0 commit comments

Comments
 (0)