[eGroupWare-svn] r55775 - /trunk/calendar/inc/class.sbox.inc.php

[email protected]
Newsgroups gmane.comp.web.egroupware.cvs
Message-ID <[email protected]>
Author: nathangray
Date: Tue Apr 19 22:25:35 2016
New Revision: 55775

URL: http://svn.stylite.de/viewvc/egroupware?rev=55775&view=rev
Log:
Update to use static method for country

Modified:
    trunk/calendar/inc/class.sbox.inc.php

Modified: trunk/calendar/inc/class.sbox.inc.php
URL: http://svn.stylite.de/viewvc/egroupware/trunk/calendar/inc/class.sbox.inc.php?rev=55775&r1=55774&r2=55775&view=diff
==============================================================================
--- trunk/calendar/inc/class.sbox.inc.php (original)
+++ trunk/calendar/inc/class.sbox.inc.php Tue Apr 19 22:25:35 2016
@@ -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);
 			}
 		}
 


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.