From b731dcbfe000e37c4f84de498dbdb89799ce9a7c Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Mon, 13 Jul 2009 10:33:26 +0000 Subject: [PATCH] loading infolog translations if current_app is NOT infolog --- infolog/inc/class.infolog_ui.inc.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/infolog/inc/class.infolog_ui.inc.php b/infolog/inc/class.infolog_ui.inc.php index ffe0efe2c3..9afd47be81 100644 --- a/infolog/inc/class.infolog_ui.inc.php +++ b/infolog/inc/class.infolog_ui.inc.php @@ -91,6 +91,7 @@ class infolog_ui */ function __construct() { + if ($GLOBALS['egw_info']['flags']['currentapp'] != 'infolog') $GLOBALS['egw']->translation->add_app('infolog'); $this->bo = new infolog_bo(); $this->tmpl = new etemplate(); @@ -312,7 +313,7 @@ class infolog_ui } // do we need to read the custom fields, depends on the column is enabled and customfields exist, prefs are filter specific // so we have to check that as well - $details = $query['filter2'] == 'all'; + $details = $query['filter2'] == 'all'; $columselection = $this->prefs['nextmatch-infolog.index.rows'.($details?'-details':'')]; //_debug_array($columselection); if ($columselection) @@ -1367,8 +1368,6 @@ class infolog_ui if (!empty($_to_emailAddress)) { - $GLOBALS['egw_info']['flags']['currentapp'] = 'infolog'; - $GLOBALS['egw']->translation->add_app($GLOBALS['egw_info']['flags']['currentapp']); echo ''; if (is_array($_attachments))