/* Define the optpage load function for the display options page. */
function load_optpage_data_display() {
global $theme, $language, $languages, $js_autodetect_results,
- $default_use_mdn, $squirrelmail_language;
+ $default_use_mdn, $squirrelmail_language, $allow_thread_sort;
/* Build a simple array into which we will build options. */
$optgrps = array();
'type' => SMOPT_TYPE_BOOLEAN,
'refresh' => SMOPT_REFRESH_ALL
);
+ if ($allow_thread_sort == 'TRUE') {
+ $optvals[SMOPT_GRP_MESSAGE][] = array(
+ 'name' => 'sort_by_ref',
+ 'caption' => _("Use References header for thread sort"),
+ 'type' => SMOPT_TYPE_BOOLEAN,
+ 'refresh' => SMOPT_REFRESH_ALL
+ );
+ }
/* Assemble all this together and return it as our result. */
$result = array(
'grps' => $optgrps,