From e0f7b920d5b2b94f3ab846e9d4b13f25dd4cc55e Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 6 Nov 2012 14:57:42 +0100 Subject: Allow setting contentframe from template (as frame object attribute) --- program/include/rcube_output_html.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'program/include') diff --git a/program/include/rcube_output_html.php b/program/include/rcube_output_html.php index b0fc81764..e67a4919a 100644 --- a/program/include/rcube_output_html.php +++ b/program/include/rcube_output_html.php @@ -1389,8 +1389,8 @@ class rcube_output_html extends rcube_output $attrib['src'] = $attrib['src'] ? $this->abs_url($attrib['src'], true) : 'program/resources/blank.gif'; // register as 'contentframe' object - if ($is_contentframe) { - $this->set_env('contentframe', $attrib['name']); + if ($is_contentframe || $attrib['contentframe']) { + $this->set_env('contentframe', $attrib['contentframe'] ? $attrib['contentframe'] : $attrib['name']); $this->set_env('blankpage', $attrib['src']); } -- cgit v1.2.3