From 6a64128893d8a355614baf9016d230afc8202484 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 31 Jan 2020 16:57:34 +0100 Subject: [PATCH] Fix mail tree not reading available svg icons --- mail/inc/class.mail_tree.inc.php | 2 +- pixelegg/images/dhtmlxtree/MailFolderDrafts.svg | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 pixelegg/images/dhtmlxtree/MailFolderDrafts.svg diff --git a/mail/inc/class.mail_tree.inc.php b/mail/inc/class.mail_tree.inc.php index 4e226554df..9014e74bd4 100644 --- a/mail/inc/class.mail_tree.inc.php +++ b/mail/inc/class.mail_tree.inc.php @@ -426,7 +426,7 @@ class mail_tree //User defined folders icons $data[Tree::IMAGE_LEAF] = $data[Tree::IMAGE_FOLDER_OPEN] = - $data [Tree::IMAGE_FOLDER_CLOSED] = "MailFolder".$key.".png"; + $data [Tree::IMAGE_FOLDER_CLOSED] = basename(Api\Image::find('mail', 'dhtmlxtree/'."MailFolder".$key)); } elseif(stripos(array2string($data['folderarray']['attributes']),'\noselect')!== false) { diff --git a/pixelegg/images/dhtmlxtree/MailFolderDrafts.svg b/pixelegg/images/dhtmlxtree/MailFolderDrafts.svg new file mode 100644 index 0000000000..dc422729a1 --- /dev/null +++ b/pixelegg/images/dhtmlxtree/MailFolderDrafts.svg @@ -0,0 +1,15 @@ + + + + + + + + + + +