Bug #9095: Fix default value for dimp_show_preview preference
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 28 Jun 2010 23:10:04 +0000 (17:10 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 28 Jun 2010 23:10:11 +0000 (17:10 -0600)
imp/config/prefs.php.dist
imp/templates/dimp/javascript_defs_dimp.php

index 8359d57..1b23465 100644 (file)
@@ -1725,7 +1725,7 @@ $_prefs['dimp_qsearch_field'] = array(
 );
 
 $_prefs['dimp_show_preview'] = array(
-    'value' => true
+    'value' => 'horiz'
 );
 
 $_prefs['dimp_splitbar'] = array(
index fffbdb0..e19e981 100644 (file)
@@ -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')),