From b95addb87c26c1425d1c36232f9992b1bba58f47 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 26 Apr 2007 15:42:51 +0000 Subject: [PATCH] "bugfix: InfoLog types were NOT translated (unless you save the infolog site config)" --- infolog/inc/class.boinfolog.inc.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/infolog/inc/class.boinfolog.inc.php b/infolog/inc/class.boinfolog.inc.php index 5c28507a21..7d4b80162e 100644 --- a/infolog/inc/class.boinfolog.inc.php +++ b/infolog/inc/class.boinfolog.inc.php @@ -183,13 +183,6 @@ class boinfolog $this->enums['type'] += $this->config->config_data['types']; //echo "types:
"; print_r($this->enums['type']); echo "
\n"; } - // sort types by there translation - foreach($this->enums['type'] as $key => $val) - { - if (($val = lang($key)) != $key.'*') $this->enums['type'][$key] = lang($key); - } - natcasesort($this->enums['type']); - if ($this->config->config_data['group_owners']) $this->group_owners = $this->config->config_data['group_owners']; if (isset($this->config->config_data['customfields']) && is_array($this->config->config_data['customfields'])) @@ -221,6 +214,13 @@ class boinfolog $this->implicit_rights = 'edit'; } } + // sort types by there translation + foreach($this->enums['type'] as $key => $val) + { + if (($val = lang($key)) != $key.'*') $this->enums['type'][$key] = lang($key); + } + natcasesort($this->enums['type']); + $this->user = $GLOBALS['egw_info']['user']['account_id']; $this->tz_offset = $GLOBALS['egw_info']['user']['preferences']['common']['tz_offset'];