From 8d084706fd53ef3970c0dcc5afc4e38fd5bb065b Mon Sep 17 00:00:00 2001 From: Jimako Date: Sun, 7 Jan 2018 23:10:05 +0100 Subject: [PATCH] fix save icon for bootstrap 4 #2898 --- e107_plugins/forum/shortcodes/batch/view_shortcodes.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/e107_plugins/forum/shortcodes/batch/view_shortcodes.php b/e107_plugins/forum/shortcodes/batch/view_shortcodes.php index 412655f45..442d70cdf 100644 --- a/e107_plugins/forum/shortcodes/batch/view_shortcodes.php +++ b/e107_plugins/forum/shortcodes/batch/view_shortcodes.php @@ -395,9 +395,12 @@ $url = e_REQUEST_SELF . "?id=" . $this->postInfo['post_id'] . "&dl=" . $key; - if(defset("BOOTSTRAP") == 3) + $saveicon = (deftrue('BOOTSTRAP') === 4) ? 'fa-save' : 'icon-save.glyph'; + $saveicon = e107::getParser()->toGlyph($saveicon,false); + + if(defset("BOOTSTRAP")) { - $txt .= "" . $tp->toGlyph('glyphicon-save') . " {$name}
"; + $txt .= "" . $saveicon . " {$name}
"; } else {