Added strlen function, fixing some unit tests

This commit is contained in:
Simon Wisselink
2023-01-09 11:54:13 +01:00
parent e124f71dd8
commit 9016dd9908
3 changed files with 30 additions and 1 deletions

View File

@@ -86,6 +86,7 @@ class DefaultExtension extends Base {
case 'isset': $this->functionHandlers[$functionName] = new \Smarty\FunctionHandler\IssetHandler(); break;
case 'mailto': $this->functionHandlers[$functionName] = new \Smarty\FunctionHandler\Mailto(); break;
case 'math': $this->functionHandlers[$functionName] = new \Smarty\FunctionHandler\Math(); break;
case 'strlen': $this->functionHandlers[$functionName] = new \Smarty\FunctionHandler\Strlen(); break;
case 'time': $this->functionHandlers[$functionName] = new \Smarty\FunctionHandler\Time(); break;
}