Sfoglia il codice sorgente

Fixed problem with changing templates using the tempalte's icon theme.

stevetruckstuff 19 anni fa
parent
commit
a15866413e
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5 1
      include/options/display.php

+ 5 - 1
include/options/display.php

@@ -224,11 +224,15 @@ function load_optpage_data_display() {
     /* Icon theme selection */
     /* Icon theme selection */
     if ($use_icons) {
     if ($use_icons) {
         global $icon_themes, $icon_theme;
         global $icon_themes, $icon_theme;
+        
         $temp = array();
         $temp = array();
         for ($count = 0; $count < sizeof($icon_themes); $count++) {
         for ($count = 0; $count < sizeof($icon_themes); $count++) {
             $temp[$count] = $icon_themes[$count]['NAME'];
             $temp[$count] = $icon_themes[$count]['NAME'];
-            if ($icon_theme == $icon_themes[$count]['PATH'])
+            if ($icon_theme == $icon_themes[$count]['PATH'] ||
+                (($icon_theme == $sTplDir.'images/') && ($icon_themes[$count]['PATH']=='template'))
+               ) {
                 $value = $count;
                 $value = $count;
+            }
         }
         }
         if (sizeof($icon_themes) > 0) {
         if (sizeof($icon_themes) > 0) {
             $optvals[SMOPT_GRP_GENERAL][] = array(
             $optvals[SMOPT_GRP_GENERAL][] = array(