ushahidi/Ushahidi_Web — Issue #232: Local Locale class does not overload PHP's default Locale
Author: aoduor
Created: 2012-02-16 17:59:13+00:00
State: open

"The local helper for Locale (application/helpers/locale.php) does not overload the system's Locale class. This causes errors when the intl library is loaded into the PHP stack. There is no way of disabling the system class without also disabling the local class. If a user cannot change the PHP configuration, this makes the application unusable with all sorts of "Locale::get_i18n() undefined" errors.

One workaround for this is defined in the next-to-last post here: http://forums.ushahidi.com/topic/fatal-error-call-to-undefined-method-localeget_i18n

I have implemented this on my instance by renaming the helper to ushlocale.php and renaming calls appropriately. This should not be required of "normal" humans." - Aaron Huslage