Update to use static method for country

This commit is contained in:
Nathan Gray 2016-04-19 20:25:35 +00:00
parent 399dd4cec5
commit f7588fb0ea

View File

@ -54,19 +54,7 @@
{
if (!$this->country_array)
{
$country = CreateObject('phpgwapi.country');
$this->country_array = &$country->country_array;
unset($country);
unset($this->country_array[' ']);
// try to translate them and sort alphabetic
foreach($this->country_array as $k => $name)
{
if (($translated = lang($name)) != $name.'*')
{
$this->country_array[$k] = $translated;
}
}
asort($this->country_array);
$this->country_array = EGroupware\Api\Country::countries(true);
}
}