From 89a81249ccc40ed042509b365a78562009185590 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 19 Oct 2009 18:17:59 +0000 Subject: [PATCH] "not calling translation::get_installed_langs() while in setup" --- preferences/inc/class.preferences_hooks.inc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/preferences/inc/class.preferences_hooks.inc.php b/preferences/inc/class.preferences_hooks.inc.php index f297899ff9..9afb5563d2 100644 --- a/preferences/inc/class.preferences_hooks.inc.php +++ b/preferences/inc/class.preferences_hooks.inc.php @@ -46,8 +46,10 @@ class preferences_hooks 'text' => lang('Text only') ); - $langs = translation::get_installed_langs(); - + if (!$hook_data['setup']) + { + $langs = translation::get_installed_langs(); + } $tzs = egw_time::getTimezones(); $date_formats = array(