From 1028c8671c599ee52e3b6622f41bb80b39ffc462 Mon Sep 17 00:00:00 2001 From: gRoussac Date: Thu, 1 Aug 2013 16:12:05 +0200 Subject: [PATCH] [-] CORE : Merge from PrestaEdit last pull request again --- classes/Tools.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/classes/Tools.php b/classes/Tools.php index 492e3b209..802cf391b 100644 --- a/classes/Tools.php +++ b/classes/Tools.php @@ -1422,13 +1422,13 @@ class ToolsCore /** * Translates a string with underscores into camel case (e.g. first_name -> firstName) - * @prototype string public static function toCamelCase(string $str[, bool $catapitalise_first_char = false]) + * @prototype string public static function toCamelCase(string $str[, bool $capitalise_first_char = false]) */ public static function toCamelCase($str, $catapitalise_first_char = false) { - $str = strtolower($str); + $str = Tools::strtolower($str); if ($catapitalise_first_char) - $str = ucfirst($str); + $str = Tools::ucfirst($str); return preg_replace_callback('/_+([a-z])/', create_function('$c', 'return strtoupper($c[1]);'), $str); }