From 33c30dc147b0823b49ad6fe71e9c85c77965c208 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 21 Apr 2003 08:37:17 +0000 Subject: [PATCH] fixed / get it working again - Mainscreen Message - some space between the portal-boxes - added disable-output-escapeing to msgbox-data --- home.php | 7 +++++-- phpgwapi/templates/default/msgbox.xsl | 2 +- phpgwapi/templates/default/portal.xsl | 14 ++++++++++---- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/home.php b/home.php index 9cb762c95e..a365ad7b2d 100755 --- a/home.php +++ b/home.php @@ -60,13 +60,15 @@ $extra_vars .= '&' . $name . '=' . urlencode($value); } } - $GLOBALS['phpgw']->redirect($GLOBALS['phpgw']->link($GLOBALS['phpgw_forward'],$extra_vars)); + $GLOBALS['phpgw']->redirect_link($GLOBALS['phpgw_forward'],$extra_vars); } $GLOBALS['phpgw']->translation->add_app('mainscreen'); if (lang('mainscreen_message') != 'mainscreen_message'.lang_char()) { - echo '
' . stripslashes(lang('mainscreen_message')) . '
'; + $GLOBALS['phpgw']->xslttpl->set_var('phpgw',array( + 'mainscreen_message' => stripslashes(lang('mainscreen_message')) + )); } if ((isset($GLOBALS['phpgw_info']['user']['apps']['admin']) && @@ -212,6 +214,7 @@ } $GLOBALS['phpgw']->preferences->save_repository(); } + $GLOBALS['phpgw_info']['flags']['currentapp'] = 'home'; // has been changed by hook_home's $GLOBALS['phpgw']->xslttpl->set_var('phpgw',$GLOBALS['phpgw']->portalbox->output); } diff --git a/phpgwapi/templates/default/msgbox.xsl b/phpgwapi/templates/default/msgbox.xsl index 387eb37a68..4789e8a6a1 100644 --- a/phpgwapi/templates/default/msgbox.xsl +++ b/phpgwapi/templates/default/msgbox.xsl @@ -17,7 +17,7 @@ '; return true; - + diff --git a/phpgwapi/templates/default/portal.xsl b/phpgwapi/templates/default/portal.xsl index a914375feb..db9eb8d059 100644 --- a/phpgwapi/templates/default/portal.xsl +++ b/phpgwapi/templates/default/portal.xsl @@ -1,13 +1,18 @@ + + + + + - - + @@ -15,8 +20,8 @@ - - +
+
+
@@ -49,6 +54,7 @@
+