From 13f89f8e0f62dae3f3c1141d05ce49f1ffe16ffd Mon Sep 17 00:00:00 2001 From: thomasb Date: Fri, 24 Jul 2009 08:29:24 +0000 Subject: Allow some recursion in reder_page hook (#1485977) git-svn-id: https://svn.roundcube.net/trunk@2791 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/include/rcube_template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roundcubemail/program/include/rcube_template.php') diff --git a/roundcubemail/program/include/rcube_template.php b/roundcubemail/program/include/rcube_template.php index d4c3464db..ecb5a8942 100755 --- a/roundcubemail/program/include/rcube_template.php +++ b/roundcubemail/program/include/rcube_template.php @@ -289,7 +289,7 @@ class rcube_template extends rcube_html_page { if ($templ != 'iframe') { // prevent from endless loops - if ($this->app->plugins->is_processing('render_page')) { + if ($exit != 'recur' && $this->app->plugins->is_processing('render_page')) { raise_error(array('code' => 505, 'type' => 'php', 'message' => 'Recursion alert: ignoring output->send()'), true, false); return; } -- cgit v1.2.3