🌍
English
Hi;
I've just opened [Bugtracker] ticket 3206. I don't understand why it was not reported before.
It is located in load_language function definition, at line 1515 of include/functions.inc.php:
writing
$default_language = defined('PHPWG_INSTALLED') and !defined('UPGRADES_PATH') ? get_default_language() : PHPWG_DEFAULT_LANGUAGE;
makes $default_language be evaluated as a boolean. Writing
$default_language = (defined('PHPWG_INSTALLED') and !defined('UPGRADES_PATH')) ?
get_default_language() : PHPWG_DEFAULT_LANGUAGE;
makes the evaluation correct.
Sorry not to have made this report before 2.7.4 release :-/ .
Last edited by LucMorizur (2015-02-21 10:26:07)
Offline