From: Robert Sesek Date: Thu, 26 Jun 2008 14:15:44 +0000 (-0400) Subject: Pass the BSTemplate object to the ISSO hook X-Git-Tag: 3.1.0~6 X-Git-Url: https://src.bluestatic.org/?a=commitdiff_plain;h=e240cb20108fed1cca640316640eb84015a756a6;p=isso.git Pass the BSTemplate object to the ISSO hook * Template.php: (BSTemplate::_parseTemplate) --- diff --git a/CHANGES b/CHANGES index 0cc47b1..244c43e 100644 --- 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 diff --git a/Template.php b/Template.php index 9f4e68e..82d533e 100644 --- a/Template.php +++ b/Template.php @@ -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);