From 906f8d57b8782dad90d8c75d00413ce0f5cda34e Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 21 Nov 2016 15:20:36 +0100 Subject: [PATCH] fixes #306, operator precedence issue in load_language --- include/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions.inc.php b/include/functions.inc.php index 39b618d81..10d6c8f2d 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -1559,7 +1559,7 @@ function load_language($filename, $dirname = '', $options = array()) } $dirname .= 'language/'; - $default_language = defined('PHPWG_INSTALLED') and !defined('UPGRADES_PATH') ? + $default_language = (defined('PHPWG_INSTALLED') and !defined('UPGRADES_PATH')) ? get_default_language() : PHPWG_DEFAULT_LANGUAGE; // construct list of potential languages