diff options
author | Chris Kulbacki <chris.kulbacki@gmx.com> | 2014-04-10 10:52:04 +0200 |
---|---|---|
committer | Chris Kulbacki <chris.kulbacki@gmx.com> | 2014-04-10 10:52:04 +0200 |
commit | c75670d500bed0c7c64142146f27fa3598e86106 (patch) | |
tree | b5357f7fa7b8334491321ecf969778897eef195d /program/steps/settings | |
parent | eddaf0b5f68c9863181b62db33bc468d38071e8a (diff) |
Skins sorted by skin name in the Settings.
Diffstat (limited to 'program/steps/settings')
-rw-r--r-- | program/steps/settings/func.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc index 47efa5a70..bccd9caa8 100644 --- a/program/steps/settings/func.inc +++ b/program/steps/settings/func.inc @@ -346,6 +346,7 @@ function rcmail_user_prefs($current = null) $license_link = $meta['license-url'] ? html::a(array('href' => $meta['license-url'], 'target' => '_blank'), rcube::Q($meta['license'])) : rcube::Q($meta['license']); } + $skinnames[] = mb_strtolower($skinname); $blocks['skin']['options'][$skin]['content'] = html::label(array('class' => 'skinselection'), html::span('skinitem', $input->show($config['skin'], array('value' => $skin, 'id' => $field_id.$skin))) . html::span('skinitem', html::img(array('src' => $thumbnail, 'class' => 'skinthumbnail', 'alt' => $skin, 'width' => 64, 'height' => 64))) . @@ -354,6 +355,7 @@ function rcmail_user_prefs($current = null) html::span('skinlicense', $license_link ? $RCMAIL->gettext('license').': ' . $license_link : '')) ); } + array_multisort($blocks['skin']['options'], SORT_ASC, SORT_STRING, $skinnames); } } |