cvs: smarty / NEWS /libs Smarty.class.php
| From: | Messju Mohr | Date: | Thu, 19 Jun 2003 10:35:23 +0000 |
| Subject: | cvs: smarty / NEWS /libs Smarty.class.php | ||
| Groups: | php.smarty.cvs | ||
| Request: | Send a blank email to php-smarty-cvs+get-665@lists.php.net to get a copy of this message | ||
messju Thu Jun 19 06:35:23 2003 EDT
Modified files:
/smarty NEWS
/smarty/libs Smarty.class.php
Log:
added $cacheable-parameter to register_compiler_function()
Index: smarty/NEWS
diff -u smarty/NEWS:1.381 smarty/NEWS:1.382
--- smarty/NEWS:1.381 Wed Jun 18 19:01:41 2003
+++ smarty/NEWS Thu Jun 19 06:35:23 2003
@@ -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)
Index: smarty/libs/Smarty.class.php
diff -u smarty/libs/Smarty.class.php:1.410 smarty/libs/Smarty.class.php:1.411
--- smarty/libs/Smarty.class.php:1.410 Wed Jun 18 19:01:41 2003
+++ smarty/libs/Smarty.class.php Thu Jun 19 06:35:23 2003
@@ -42,7 +42,7 @@
* @version 2.5.0
*/
-/* $Id: Smarty.class.php,v 1.410 2003/06/18 23:01:41 messju Exp $ */
+/* $Id: Smarty.class.php,v 1.411 2003/06/19 10:35:23 messju Exp $ */
/**
* DIR_SEP isn't used anymore, but third party apps might
@@ -784,10 +784,10 @@
* @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);
}
/**