Merged in bugfix/PMCORE-2973 (pull request #7885)
PMCORE-2973 Review the WARNING in the file workflow/engine/methods/reportTables/reportTables_Ajax.php Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
commit
d77d8a883e
@@ -346,7 +346,9 @@ function to_camel_case ($str, $capitalise_first_char = true)
|
|||||||
if ($capitalise_first_char) {
|
if ($capitalise_first_char) {
|
||||||
$str[0] = strtoupper( $str[0] );
|
$str[0] = strtoupper( $str[0] );
|
||||||
}
|
}
|
||||||
$func = create_function( '$c', 'return strtoupper($c[1]);' );
|
$func = function ($c) {
|
||||||
|
return strtoupper($c[1]);
|
||||||
|
};
|
||||||
return preg_replace_callback( '/_([a-z])/', $func, $str );
|
return preg_replace_callback( '/_([a-z])/', $func, $str );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user