From: Tim Otten Date: Sat, 22 Aug 2015 08:28:56 +0000 (-0700) Subject: ImTest, SyntaxConformanceTest, CRM_Utils_String - Fix for case-insensitive filesystems X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6ba0ed7a55bad03c94aef291f576f58a1f8a15cc;p=civicrm-core.git ImTest, SyntaxConformanceTest, CRM_Utils_String - Fix for case-insensitive filesystems --- diff --git a/CRM/Utils/String.php b/CRM/Utils/String.php index 9f6cf148f8..77011a9135 100644 --- a/CRM/Utils/String.php +++ b/CRM/Utils/String.php @@ -104,6 +104,16 @@ class CRM_Utils_String { * @return string */ public static function convertStringToCamel($string) { + $map = array( + 'acl' => 'Acl', + 'ACL' => 'Acl', + 'im' => 'Im', + 'IM' => 'Im', + ); + if (isset($map[$string])) { + return $map[$string]; + } + $fragments = explode('_', $string); foreach ($fragments as & $fragment) { $fragment = ucfirst($fragment);