Convert all preview pref value.
authorJan Schneider <jan@horde.org>
Tue, 17 Nov 2009 22:20:31 +0000 (23:20 +0100)
committerJan Schneider <jan@horde.org>
Tue, 17 Nov 2009 22:20:31 +0000 (23:20 +0100)
imp/templates/javascript_defs_dimp.php

index 46a6811..c864db7 100644 (file)
@@ -70,7 +70,7 @@ $code['conf'] = array_filter(array(
     'name' => $GLOBALS['registry']->get('name', 'imp'),
     'popup_height' => 610,
     'popup_width' => 820,
-    'preview_pref' => $GLOBALS['prefs']->getValue('dimp_show_preview'),
+    'preview_pref' => $GLOBALS['prefs']->getValue('dimp_show_preview') === true ? 'horiz' : $GLOBALS['prefs']->getValue('dimp_show_preview'),
     'qsearchid' => IMP_Search::MBOX_PREFIX . IMP_Search::DIMP_QUICKSEARCH,
     'qsearchfield' => $GLOBALS['prefs']->getValue('dimp_qsearch_field'),
     'refresh_time' => intval($GLOBALS['prefs']->getValue('refresh_time')),