From 3e11f03137b17921eec07c3ecc30f0bf3acf0a1e Mon Sep 17 00:00:00 2001 From: SecretR Date: Thu, 3 Oct 2013 12:09:35 +0300 Subject: [PATCH] Make menu title shortcode work without bootstrap/.glyph --- e107_core/shortcodes/batch/page_shortcodes.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/e107_core/shortcodes/batch/page_shortcodes.php b/e107_core/shortcodes/batch/page_shortcodes.php index 76d42157b..15335b931 100644 --- a/e107_core/shortcodes/batch/page_shortcodes.php +++ b/e107_core/shortcodes/batch/page_shortcodes.php @@ -198,6 +198,12 @@ class cpage_shortcodes extends e_shortcode $tp = e107::getParser(); $title = $tp->toGlyph($this->page['menu_title']); // (preg_replace('/i_([\w]*)/',"",$this->page['menu_title']); + // make it work without glyph + if(!$title) + { + $title = $this->page['menu_title']; + } + return $tp->toHTML($title, true, 'TITLE'); }