mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 18:03:39 +01:00
Update to use static method for country
This commit is contained in:
parent
399dd4cec5
commit
f7588fb0ea
@ -54,19 +54,7 @@
|
|||||||
{
|
{
|
||||||
if (!$this->country_array)
|
if (!$this->country_array)
|
||||||
{
|
{
|
||||||
$country = CreateObject('phpgwapi.country');
|
$this->country_array = EGroupware\Api\Country::countries(true);
|
||||||
$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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user