On 20.05.2010 12:40, Thue Janus Kristensen wrote:
> I missed that fetch was already used in the original template :(.
>
> Shouldn't Uwe's code be added inside the official smarty fetch function?
Besides that you can easily change it yourself:
> --- libraries/Smarty/Smarty.php (revision 132)
> +++ libraries/Smarty/Smarty.php (working copy)
> @@ -329,12 +329,21 @@
> $_gmt_mtime = '';
> }
> }
> - // return redered template
> - if (isset($this->autoload_filters['output']) || isset($this->registered_filters['output'])) {
> - $_output = Smarty_Internal_Filter_Handler::runFilter('output', $_template->getRenderedTemplate(), $this, $_template);
> - } else {
> - $_output = $_template->getRenderedTemplate();
> +
> + try {
> + // return redered template
> + if (isset($this->autoload_filters['output']) || isset($this->registered_filters['output'])) {
> + $_output = Smarty_Internal_Filter_Handler::runFilter('output', $_template->getRenderedTemplate(), $this, $_template);
> + } else {
> + $_output = $_template->getRenderedTemplate();
> + }
> + } catch (Exception $e) {
> + while (1 < ob_get_level()) {
> + ob_end_clean();
> + }
> + throw $e;
> }
Greetings
Martin
--
You received this message because you are subscribed to the Google Groups "Smarty Developers" group.
To post to this group, send email to
smarty-d...@googlegroups.com.