mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +02:00
BC Fix
This commit is contained in:
@@ -935,7 +935,7 @@ class news_shortcodes extends e_shortcode
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
function sc_newstitlelink($parm = '')
|
function sc_newstitlelink($parm = null)
|
||||||
{
|
{
|
||||||
if(is_string($parm))
|
if(is_string($parm))
|
||||||
{
|
{
|
||||||
@@ -947,12 +947,17 @@ class news_shortcodes extends e_shortcode
|
|||||||
}
|
}
|
||||||
|
|
||||||
$url = e107::getUrl()->create('news/view/item', $this->news_item);
|
$url = e107::getUrl()->create('news/view/item', $this->news_item);
|
||||||
|
|
||||||
if(isset($parms['href']))
|
if(isset($parms['href']))
|
||||||
{
|
{
|
||||||
return $url;
|
return $url;
|
||||||
}
|
}
|
||||||
|
|
||||||
unset($parm['link']);
|
if(isset($parm['link']))
|
||||||
|
{
|
||||||
|
unset($parm['link']);
|
||||||
|
}
|
||||||
|
|
||||||
$title = $this->sc_news_title($parm);
|
$title = $this->sc_news_title($parm);
|
||||||
|
|
||||||
return "<a style='".(isset($this->param['itemlink']) ? $this->param['itemlink'] : 'null')."' href='{$url}'>".$title.'</a>';
|
return "<a style='".(isset($this->param['itemlink']) ? $this->param['itemlink'] : 'null')."' href='{$url}'>".$title.'</a>';
|
||||||
|
Reference in New Issue
Block a user