diff --git a/program/include/rcube_template.php b/program/include/rcube_template.php index 455bbcfd2..98d8b6057 100755 --- a/program/include/rcube_template.php +++ b/program/include/rcube_template.php @@ -371,6 +371,9 @@ class rcube_template extends rcube_html_page // parse for specialtags $output = $this->parse_conditions($templ); $output = $this->parse_xml($output); + + // trigger generic hook where plugins can put additional content to the page + $hook = $this->app->plugins->exec_hook("render_page", array('template' => $name, 'content' => $output)); // add debug console if ($this->config['debug_level'] & 8) { @@ -379,7 +382,8 @@ class rcube_template extends rcube_html_page
' ); } - $output = $this->parse_with_globals($output); + + $output = $this->parse_with_globals($hook['content']); $this->write(trim($output)); if ($exit) { exit;