From e240cb20108fed1cca640316640eb84015a756a6 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 26 Jun 2008 10:15:44 -0400 Subject: [PATCH] Pass the BSTemplate object to the ISSO hook * Template.php: (BSTemplate::_parseTemplate) --- CHANGES | 1 + Template.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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); -- 2.22.5