[2.0] Fix casing bug in Parser - IfFunction checks lower-case the function name, but register methods don't.
This commit is contained in:
parent
98a77d9387
commit
da2c329e60
1 changed files with 3 additions and 3 deletions
|
@ -201,7 +201,7 @@ class Parser
|
||||||
*/
|
*/
|
||||||
public static function registerStringFunction($name, $class)
|
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)
|
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)
|
public static function registerDatetimeFunction($name, $class)
|
||||||
{
|
{
|
||||||
self::$_DATETIME_FUNCTIONS[$name] = $class;
|
self::$_DATETIME_FUNCTIONS[strtolower($name)] = $class;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue