Commit da2c329e authored by beberlei's avatar beberlei

[2.0] Fix casing bug in Parser - IfFunction checks lower-case the function...

[2.0] Fix casing bug in Parser - IfFunction checks lower-case the function name, but register methods don't.
parent 98a77d93
......@@ -201,7 +201,7 @@ class Parser
*/
public static function registerStringFunction($name, $class)
{
self::$_STRING_FUNCTIONS[$name] = $class;
self::$_STRING_FUNCTIONS[strtolower($name)] = $class;
}
/**
......@@ -212,7 +212,7 @@ class Parser
*/
public static function registerNumericFunction($name, $class)
{
self::$_NUMERIC_FUNCTIONS[$name] = $class;
self::$_NUMERIC_FUNCTIONS[strtolower($name)] = $class;
}
/**
......@@ -223,7 +223,7 @@ class Parser
*/
public static function registerDatetimeFunction($name, $class)
{
self::$_DATETIME_FUNCTIONS[$name] = $class;
self::$_DATETIME_FUNCTIONS[strtolower($name)] = $class;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment