From a2b1987f99288e4eb898391c3cfdf48ea1751faf Mon Sep 17 00:00:00 2001 From: stevetruckstuff Date: Fri, 24 Feb 2006 22:33:15 +0000 Subject: [PATCH] Fixed problem with changing templates using the tempalte's icon theme. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10827 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- include/options/display.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/options/display.php b/include/options/display.php index 60a500c9..af554d7e 100644 --- a/include/options/display.php +++ b/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( -- 2.25.1