From a014079fd8318fb7c8a335ca85d6e00660307d50 Mon Sep 17 00:00:00 2001 From: Cameron Date: Fri, 1 May 2020 13:56:10 -0700 Subject: [PATCH] Issue #4141 - remove 'style' from link when not in use. --- e107_core/shortcodes/batch/news_shortcodes.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e107_core/shortcodes/batch/news_shortcodes.php b/e107_core/shortcodes/batch/news_shortcodes.php index 182da9560..0cd68a744 100644 --- a/e107_core/shortcodes/batch/news_shortcodes.php +++ b/e107_core/shortcodes/batch/news_shortcodes.php @@ -573,7 +573,8 @@ class news_shortcodes extends e_shortcode $category_name = e107::getParser()->toHTML($this->news_item['category_name'], FALSE ,'defs'); $category = array('id' => $this->news_item['category_id'], 'name' => $this->news_item['category_sef'] ); // $categoryClass = varset($GLOBALS['NEWS_CSSMODE'],''); - return "param['catlink'] : "#")."' href='".e107::getUrl()->create('news/list/category', $category)."'>".$category_name.""; + $style = isset($this->param['catlink']) ? "style='".$this->param['catlink']."'" : ''; + return "".$category_name.""; } function sc_newsdate($parm)