From df76797cc3bf64bb3ee216994de06eecd6f8c082 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 28 Jun 2010 17:10:04 -0600 Subject: [PATCH] Bug #9095: Fix default value for dimp_show_preview preference --- imp/config/prefs.php.dist | 2 +- imp/templates/dimp/javascript_defs_dimp.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/imp/config/prefs.php.dist b/imp/config/prefs.php.dist index 8359d5706..1b2346536 100644 --- a/imp/config/prefs.php.dist +++ b/imp/config/prefs.php.dist @@ -1725,7 +1725,7 @@ $_prefs['dimp_qsearch_field'] = array( ); $_prefs['dimp_show_preview'] = array( - 'value' => true + 'value' => 'horiz' ); $_prefs['dimp_splitbar'] = array( diff --git a/imp/templates/dimp/javascript_defs_dimp.php b/imp/templates/dimp/javascript_defs_dimp.php index fffbdb077..e19e981f4 100644 --- a/imp/templates/dimp/javascript_defs_dimp.php +++ b/imp/templates/dimp/javascript_defs_dimp.php @@ -67,7 +67,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') === true ? 'horiz' : $GLOBALS['prefs']->getValue('dimp_show_preview'), + 'preview_pref' => empty($GLOBALS['prefs']->getValue('dimp_show_preview')) ? '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')), -- 2.11.0