Pass the BSTemplate object to the ISSO hook
authorRobert Sesek <rsesek@bluestatic.org>
Thu, 26 Jun 2008 14:15:44 +0000 (10:15 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Thu, 26 Jun 2008 14:15:44 +0000 (10:15 -0400)
* Template.php:
(BSTemplate::_parseTemplate)

CHANGES
Template.php

diff --git a/CHANGES b/CHANGES
index 0cc47b1d7b96492711943127610fdf51701c92d7..244c43eb703bac71c1900ae878d5a3ecabe3d8fc 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -9,3 +9,4 @@
 - Change: Added BSPrinterAbstract::__toString() that merely calls paint()
 - Change: BSTemplate is completely redone
 - New: Implement Iterator in BSDBResult
+- New: In the BSTemplate::$preParseHook method, the second parameter will be the BSTemplate object itself
index 9f4e68e23436612188ead00ac96b7f0e83446204..82d533ed8a13fdb429493bfab6f1ec4cf516b46a 100644 (file)
@@ -250,7 +250,7 @@ class BSTemplate
        {
                if (function_exists(self::$preParseHook))
                {
-                       $template = call_user_func(self::$preParseHook, $template);
+                       $template = call_user_func(self::$preParseHook, $template, $this);
                }
                
                $template = $this->_parseTokens($template);