From: stevetruckstuff Date: Mon, 9 Oct 2006 19:03:27 +0000 (+0000) Subject: Use $icon_theme_path rather than $settings['iconThemePath']. X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=5e8e22db8e32b70b07c1647982cffcd06a9831cb Use $icon_theme_path rather than $settings['iconThemePath']. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11885 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/templates/default/left_main.tpl b/templates/default/left_main.tpl index bbe6b191..92e90303 100644 --- a/templates/default/left_main.tpl +++ b/templates/default/left_main.tpl @@ -8,8 +8,6 @@ * $clock - formatted string containing last refresh * $settings - Array containing user perferences needed by this * template. Indexes are as follows: - * $settings['iconThemePath'] - Path to the desired icon theme. If - * the user has disabled icons, this will be NULL. * $settings['templateID'] - contains the ID of the current * template set. This may be needed by third * party packages that don't integrate easily. @@ -79,7 +77,7 @@ include_once(SM_PATH . 'templates/util_global.php'); * * @since 1.5.2 */ -function buildMailboxTree ($box, $settings, $indent_factor=0) { +function buildMailboxTree ($box, $settings, $icon_theme_path, $indent_factor=0) { // stop condition if (empty($box)) { return ''; @@ -144,22 +142,22 @@ function buildMailboxTree ($box, $settings, $indent_factor=0) { if (!is_null($settings['iconThemePath'])) { switch (true) { case $box['IsInbox']: - $folder_icon = getIcon($settings['iconThemePath'], 'inbox.png', '', $box['MailboxName']); + $folder_icon = getIcon($icon_theme_path, 'inbox.png', '', $box['MailboxName']); break; case $box['IsSent']: - $folder_icon = getIcon($settings['iconThemePath'], 'senti.png', '', $box['MailboxName']); + $folder_icon = getIcon($icon_theme_path, 'senti.png', '', $box['MailboxName']); break; case $box['IsTrash']: - $folder_icon = getIcon($settings['iconThemePath'], 'delitem.png', '', $box['MailboxName']); + $folder_icon = getIcon($icon_theme_path, 'delitem.png', '', $box['MailboxName']); break; case $box['IsDraft']: - $folder_icon = getIcon($settings['iconThemePath'], 'draft.png', '', $box['MailboxName']); + $folder_icon = getIcon($icon_theme_path, 'draft.png', '', $box['MailboxName']); break; case $box['IsNoInferiors']: - $folder_icon = getIcon($settings['iconThemePath'], 'folder_noinf.png', '', $box['MailboxName']); + $folder_icon = getIcon($icon_theme_path, 'folder_noinf.png', '', $box['MailboxName']); break; default: - $folder_icon = getIcon($settings['iconThemePath'], 'folder.png', '', $box['MailboxName']); + $folder_icon = getIcon($icon_theme_path, 'folder.png', '', $box['MailboxName']); break; } $folder_icon .= ' '; @@ -277,7 +275,7 @@ extract($t);
- +