Skip to content

Commit

Permalink
Update news_shortcodes.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rica-carv authored Aug 4, 2024
1 parent 9fa6f1a commit d3366fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions e107_core/shortcodes/batch/news_shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ function sc_news_author($parm=null)
{
return $this->news_item['user_name'];
}
elseif($parm == 'profilelink')
{
return e107::getUrl()->create('user/profile/view', $this->news_item);
}
else
{
return "<a href='".e107::getUrl()->create('user/profile/view', $this->news_item)."'>".$this->news_item['user_name']."</a>";
Expand Down

0 comments on commit d3366fd

Please sign in to comment.