add
05-15-2007, 10:54 AM
Hello,
in last version (2.1.03) I cannot add my own smarty functions in template files.
Also, i noticed that there are no usual register function in /includes/classes/DirSmarty.php
In older version i used $gDirSmarty->register_function("my_own_func", "my_own_func");
now i recieve this error:
Fatal USER ERROR Smarty error: [in link-display.tpl line 19]: syntax error: unrecognized tag 'my_own_func' (Smarty_Compiler.class.php, line 590) in *censored*\includes\classes\smarty\Smarty.class.ph p:1095
in last version (2.1.03) I cannot add my own smarty functions in template files.
Also, i noticed that there are no usual register function in /includes/classes/DirSmarty.php
In older version i used $gDirSmarty->register_function("my_own_func", "my_own_func");
now i recieve this error:
Fatal USER ERROR Smarty error: [in link-display.tpl line 19]: syntax error: unrecognized tag 'my_own_func' (Smarty_Compiler.class.php, line 590) in *censored*\includes\classes\smarty\Smarty.class.ph p:1095