1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-18 12:21:45 +02:00

Comments panel enabled in admin. Yet to be completed.

This commit is contained in:
Cameron
2013-05-17 19:45:39 -07:00
parent 47ec354150
commit 393fbc5007
2 changed files with 56 additions and 53 deletions

View File

@@ -59,9 +59,9 @@ class comment_shortcodes extends e_shortcode
function sc_username($parm='')
{
global $USERNAME;
if (isset($this->var['user_id']) && $this->var['user_id'])
if (isset($this->var['comment_author_id']) && $this->var['comment_author_id'])
{
$USERNAME = $parm == 'raw' ? $this->var['user_name'] : "<a href='".e107::getUrl()->create('user/profile/view', array('id' => $this->var['user_id'], 'name' => $this->var['user_name']))."'>".$this->var['user_name']."</a>\n";
$USERNAME = $parm == 'raw' ? $this->var['comment_author_name'] : "<a href='".e107::getUrl()->create('user/profile/view', array('id' => $this->var['comment_author_id'], 'name' => $this->var['comment_author_name']))."'>".$this->var['comment_author_name']."</a>\n";
}
else
{