From a256704ecc4c2336288408ef7f1ddf1b963ac745 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Fri, 2 Jul 2010 10:07:48 +0000 Subject: [PATCH] fix bug regarding the CKEditor view of Main/Loginscreenmessages --- admin/inc/class.uimainscreen.inc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/inc/class.uimainscreen.inc.php b/admin/inc/class.uimainscreen.inc.php index a0b4f5f7cb..4b26124b5c 100644 --- a/admin/inc/class.uimainscreen.inc.php +++ b/admin/inc/class.uimainscreen.inc.php @@ -20,7 +20,6 @@ $section = $_POST['section']; $select_lang = $_POST['select_lang']; $message = get_magic_quotes_gpc() ? stripslashes($_POST['message']) : $_POST['message']; - $acl_ok = array(); if (!$GLOBALS['egw']->acl->check('mainscreen_message_access',1,'admin')) { @@ -36,6 +35,8 @@ $GLOBALS['egw']->redirect_link('/admin/index.php'); } + egw_framework::validate_file('ckeditor3','ckeditor','phpgwapi'); + $GLOBALS['egw']->template->set_file(array('message' => 'mainscreen_message.tpl')); $GLOBALS['egw']->template->set_block('message','form','form'); $GLOBALS['egw']->template->set_block('message','row','row'); @@ -127,8 +128,7 @@ $htmlarea_button=''; - - } + } $GLOBALS['egw']->common->egw_header(); echo parse_navbar(); @@ -158,7 +158,7 @@ $GLOBALS['egw']->template->set_var('lang_cancel',lang('Cancel')); $GLOBALS['egw']->template->set_var('error_message',$feedback_message); - $GLOBALS['egw']->template->pfp('out','form'); + $GLOBALS['egw']->template->pparse('out','form'); } } ?>