added $cacheable-parameter to register_compiler_function()

This commit is contained in:
messju
2003-06-19 10:35:23 +00:00
parent 598bf9feda
commit 5a803ca612
2 changed files with 3 additions and 2 deletions

1
NEWS
View File

@@ -1,3 +1,4 @@
- added $cacheable-parameter to register_compiler_function() (messju)
- added $cacheable-parameter with default=true to register_function()
and register_block() (messju)
- add math speedup to core (Dominik, Monte)

View File

@@ -784,10 +784,10 @@ reques * @var string
* @param string $function name of template function
* @param string $function_impl name of PHP function to register
*/
function register_compiler_function($function, $function_impl)
function register_compiler_function($function, $function_impl, $cacheable=true)
{
$this->_plugins['compiler'][$function] =
array($function_impl, null, null, false);
array($function_impl, null, null, false, $cacheable);
}
/**