summaryrefslogtreecommitdiff
path: root/program/include/rcube_template.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-11-24 14:51:43 +0000
committeralecpl <alec@alec.pl>2011-11-24 14:51:43 +0000
commite4a4ca19480690193e36e14ef6b9d592e73e9e9c (patch)
treeb24656462bb2ffc33cf2504dd84e571d798d677e /program/include/rcube_template.php
parent3875eb68139d878fba2f00bdcaae3c34ebb53da7 (diff)
- Performance improvements
Diffstat (limited to 'program/include/rcube_template.php')
-rwxr-xr-xprogram/include/rcube_template.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/program/include/rcube_template.php b/program/include/rcube_template.php
index ea221767c..df10ac116 100755
--- a/program/include/rcube_template.php
+++ b/program/include/rcube_template.php
@@ -434,7 +434,11 @@ class rcube_template extends rcube_html_page
// 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));
- $output = $this->parse_with_globals($hook['content']);
+ // save some memory
+ $output = $hook['content'];
+ unset($hook['content']);
+
+ $output = $this->parse_with_globals($output);
// make sure all <form> tags have a valid request token
$output = preg_replace_callback('/<form\s+([^>]+)>/Ui', array($this, 'alter_form_tag'), $output);