mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Fix for broken forum on early PHP 5 versions.
This commit is contained in:
@@ -348,7 +348,8 @@ class forum_shortcodes extends e_shortcode
|
|||||||
|
|
||||||
if(USER && is_array($this->newFlagList) && in_array($this->var['forum_id'], $this->newFlagList))
|
if(USER && is_array($this->newFlagList) && in_array($this->var['forum_id'], $this->newFlagList))
|
||||||
{
|
{
|
||||||
$url = $this->sc_lastpost(['type'=>'url']);
|
|
||||||
|
$url = $this->sc_lastpost(array('type'=>'url'));
|
||||||
return "<a href='".$url."'>".IMAGE_new.'</a>';
|
return "<a href='".$url."'>".IMAGE_new.'</a>';
|
||||||
}
|
}
|
||||||
elseif(empty($this->var['forum_replies']) && defined('IMAGE_noreplies'))
|
elseif(empty($this->var['forum_replies']) && defined('IMAGE_noreplies'))
|
||||||
@@ -418,13 +419,13 @@ class forum_shortcodes extends e_shortcode
|
|||||||
|
|
||||||
function sc_lastpostuser()
|
function sc_lastpostuser()
|
||||||
{
|
{
|
||||||
return $this->sc_lastpost(['type'=>'username']);
|
return $this->sc_lastpost(array('type'=>'username'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function sc_lastpostdate()
|
function sc_lastpostdate()
|
||||||
{
|
{
|
||||||
return $this->sc_lastpost(['type'=>'datelink']);
|
return $this->sc_lastpost(array('type'=>'datelink'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user