Browse Source

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

stevetruckstuff 19 years ago
parent
commit
a15866413e
1 changed files with 5 additions and 1 deletions
  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 */
     if ($use_icons) {
         global $icon_themes, $icon_theme;
+        
         $temp = array();
         for ($count = 0; $count < sizeof($icon_themes); $count++) {
             $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;
+            }
         }
         if (sizeof($icon_themes) > 0) {
             $optvals[SMOPT_GRP_GENERAL][] = array(