[eGroupWare-svn] r56066 - /trunk/preferences/inc/class.preferences_hooks.inc.php
[email protected] Fri, 06 May 2016 11:07:42 -0000
| Newsgroups | gmane.comp.web.egroupware.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: leithoff
Date: Fri May 6 13:07:42 2016
New Revision: 56066
URL: http://svn.stylite.de/viewvc/egroupware?rev=56066&view=rev
Log:
check if class Locale exists before using it
Modified:
trunk/preferences/inc/class.preferences_hooks.inc.php
Modified: trunk/preferences/inc/class.preferences_hooks.inc.php
URL: http://svn.stylite.de/viewvc/egroupware/trunk/preferences/inc/class.preferences_hooks.inc.php?rev=56066&r1=56065&r2=56066&view=diff
==============================================================================
--- trunk/preferences/inc/class.preferences_hooks.inc.php (original)
+++ trunk/preferences/inc/class.preferences_hooks.inc.php Fri May 6 13:07:42 2016
@@ -96,7 +96,7 @@
if (empty($lang)) $lang = 'en';
}
list(,$country) = explode('-',$lang);
- if (empty($country)) $country = Locale::getRegion(Locale::getDefault());
+ if (empty($country) && class_exists('Locale')) $country = Locale::getRegion(Locale::getDefault());
if (empty($country)) $country = 'de';
// check for old rte_font_size pref including px and split it in size and unit
------------------------------------------------------------------------------
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