From e0f7b920d5b2b94f3ab846e9d4b13f25dd4cc55e Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Tue, 06 Nov 2012 08:57:42 -0500 Subject: [PATCH] Allow setting contentframe from template (as frame object attribute) --- program/include/rcube_output_html.php | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/program/include/rcube_output_html.php b/program/include/rcube_output_html.php index b0fc817..e67a491 100644 --- a/program/include/rcube_output_html.php +++ b/program/include/rcube_output_html.php @@ -1389,8 +1389,8 @@ $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']); } -- Gitblit v1.9.1