From 6ba0ed7a55bad03c94aef291f576f58a1f8a15cc Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Sat, 22 Aug 2015 01:28:56 -0700 Subject: [PATCH] ImTest, SyntaxConformanceTest, CRM_Utils_String - Fix for case-insensitive filesystems --- CRM/Utils/String.php | 10 ++++++++++ 1 file changed, 10 insertions(+) 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); -- 2.25.1