From 36543f0845bec71acda90bcb6906f4f5cdb1947c Mon Sep 17 00:00:00 2001 From: stevetruckstuff Date: Thu, 24 Aug 2006 20:30:33 +0000 Subject: [PATCH] Make sure $icon_theme_path is set correctly when users aren't logged in. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11632 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- include/init.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/init.php b/include/init.php index 9ec05a31..6c3e957e 100644 --- a/include/init.php +++ b/include/init.php @@ -503,9 +503,8 @@ if (!isset($sTplDir)) { $aTemplateSet = ( !isset($aTemplateSet) ? array() : $aTemplateSet ); $templateset_default = ( !isset($templateset_default) ? 0 : $templateset_default ); - $sTplDir = ( !isset($aTemplateSet[$templateset_default]['PATH']) ? - SM_PATH . 'templates/default/' : - $aTemplateSet[$templateset_default]['PATH'] ); + $sTplDir = !isset($aTemplateSet[$templateset_default]['PATH']) ? SM_PATH . 'templates/default/' : $aTemplateSet[$templateset_default]['PATH']; + $icon_theme_path = !$use_icons ? NULL : $sTplDir . 'images/'; } $oTemplate = new Template($sTplDir); -- 2.25.1