1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-21 21:21:54 +02:00

Merge pull request #2140 from rica-carv/rica-carv-patch-2

Forum: Fixes #2137
This commit is contained in:
Cameron 2016-12-13 13:30:46 -08:00 committed by GitHub
commit f66b3e572e

View File

@ -348,7 +348,7 @@ class forum_shortcodes extends e_shortcode
if(USER && is_array($this->newFlagList) && in_array($this->var['forum_id'], $this->newFlagList))
{
$url = $this->sc_lastpost('url');
$url = $this->sc_lastpost(['type'=>'url']);
return "<a href='".$url."'>".IMAGE_new.'</a>';
}
elseif(empty($this->var['forum_replies']) && defined('IMAGE_noreplies'))
@ -418,13 +418,13 @@ class forum_shortcodes extends e_shortcode
function sc_lastpostuser()
{
return $this->sc_lastpost('username');
return $this->sc_lastpost(['type'=>'username']);
}
function sc_lastpostdate()
{
return $this->sc_lastpost('datelink');
return $this->sc_lastpost(['type'=>'datelink']);
}