Menu

#5 $cfgStrings[][$lang] inconsistent: $lang is string or int

open
nobody
None
5
2005-10-05
2005-10-05
Thomas Mack
No

In the function getOrientation() of Object.php, the
$language parameter of $cfgStrings[$form][$language]
is forced to be one of 'en' and 'de', in Geo.php,
$language is initialized as GEO_LANGUAGE_EN (integer
7) and GEO_LANGUAGE_DE (integer 8) only.

Solution: make the parameter names consistent,
normally change GEO_LANGUAGE_EN etc. to 'en' etc. in
Geo.php .

Discussion


Log in to post a comment.