1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00
This commit is contained in:
Cameron
2017-03-04 10:22:13 -08:00
parent aaa5db36ab
commit 6a381cf640

View File

@@ -935,7 +935,7 @@ class news_shortcodes extends e_shortcode
function sc_newstitlelink($parm = '')
function sc_newstitlelink($parm = null)
{
if(is_string($parm))
{
@@ -947,12 +947,17 @@ class news_shortcodes extends e_shortcode
}
$url = e107::getUrl()->create('news/view/item', $this->news_item);
if(isset($parms['href']))
{
return $url;
}
unset($parm['link']);
if(isset($parm['link']))
{
unset($parm['link']);
}
$title = $this->sc_news_title($parm);
return "<a style='".(isset($this->param['itemlink']) ? $this->param['itemlink'] : 'null')."' href='{$url}'>".$title.'</a>';