From: stevetruckstuff Date: Thu, 24 Aug 2006 20:30:33 +0000 (+0000) Subject: Make sure $icon_theme_path is set correctly when users aren't logged in. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=36543f0845bec71acda90bcb6906f4f5cdb1947c;p=squirrelmail.git 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 --- 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);