Tyler Akins 23 anni fa
parent
commit
2080fada16
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      src/options_display.php

+ 3 - 1
src/options_display.php

@@ -35,8 +35,10 @@ function load_optpage_data_display() {
     /* Load the theme option. */
     /* Load the theme option. */
     $theme_values = array();
     $theme_values = array();
     foreach ($theme as $theme_key => $theme_attributes) {
     foreach ($theme as $theme_key => $theme_attributes) {
-        $theme_values[$theme_attributes['PATH']] = $theme_attributes['NAME'];
+        $theme_values[$theme_attributes['NAME']] = $theme_attributes['PATH'];
     }
     }
+    ksort($theme_values);
+    $theme_values = array_flip($theme_values);
     $optvals[SMOPT_GRP_GENERAL][] = array(
     $optvals[SMOPT_GRP_GENERAL][] = array(
         'name'    => 'chosen_theme',
         'name'    => 'chosen_theme',
         'caption' => _("Theme"),
         'caption' => _("Theme"),