From d317a59d3041223c5070ae72d3d7187ef0c089ca Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Wed, 29 Aug 2012 06:40:09 -0400
Subject: [PATCH] Fix frame() so frame ID is set as 'contentframe' env variable (not name)

---
 program/include/rcube_output_html.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/program/include/rcube_output_html.php b/program/include/rcube_output_html.php
index 9600021..2743e77 100644
--- a/program/include/rcube_output_html.php
+++ b/program/include/rcube_output_html.php
@@ -1297,7 +1297,7 @@
             $attrib['name'] = $attrib['id'];
         }
 
-        $this->set_env('contentframe', $attrib['name']);
+        $this->set_env('contentframe', $attrib['id']);
         $this->set_env('blankpage', $attrib['src'] ? $this->abs_url($attrib['src']) : 'program/resources/blank.gif');
 
         return html::iframe($attrib);

--
Gitblit v1.9.1