We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4324de commit 185ddd4Copy full SHA for 185ddd4
inc/functions.inc.php
@@ -1289,8 +1289,10 @@ function get_customize_languages()
1289
}
1290
1291
// to prevent file not found or case sensitive SO errors
1292
-function get_language_file($path = '.' . DIRECTORY_SEPARATOR . 'lang')
1293
-{
+function get_language_file($path) {
+ if ($path == null) {
1294
+ $path = '.' . DIRECTORY_SEPARATOR . 'lang';
1295
+ }
1296
$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';
1297
if (file_exists($fileLang)){
1298
return $fileLang;
0 commit comments