diff --git a/program/include/rcmail_output_html.php b/program/include/rcmail_output_html.php
index e49bdfddfe8..896678559cc 100644
--- a/program/include/rcmail_output_html.php
+++ b/program/include/rcmail_output_html.php
@@ -650,7 +650,8 @@ function parse($name = 'main', $exit = true, $write = true)
$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' => $realname, 'content' => $output));
+ $hook = $this->app->plugins->exec_hook("render_page", array(
+ 'template' => $realname, 'content' => $output, 'write' => $write));
// save some memory
$output = $hook['content'];