projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abb4035
)
ImTest, SyntaxConformanceTest, CRM_Utils_String - Fix for case-insensitive filesystems
author
Tim Otten
<totten@civicrm.org>
Sat, 22 Aug 2015 08:28:56 +0000
(
01:28
-0700)
committer
Tim Otten
<totten@civicrm.org>
Sat, 22 Aug 2015 08:31:30 +0000
(
01:31
-0700)
CRM/Utils/String.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Utils/String.php
b/CRM/Utils/String.php
index 9f6cf148f8f8243709f3e6eefb6d6157783ece87..77011a9135a56808c1422e49f55c43003a5fbeef 100644
(file)
--- 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);