mirror of
https://github.com/e107inc/e107.git
synced 2025-06-10 21:21:03 +02:00
Fixes #3813 - Comment avatar in comment form
This commit is contained in:
@ -121,6 +121,13 @@ class comment_shortcodes extends e_shortcode
|
||||
// $url = $tp->thumbUrl($this->var['user_image']);
|
||||
// $text = $tp->parseTemplate("{USER_AVATAR=".vartrue($this->var['user_image'],USERIMAGE)."}");
|
||||
// $text = $tp->parseTemplate("{USER_AVATAR=".$this->var['user_id']."}");
|
||||
|
||||
// Comment form - no user_id, assume current user
|
||||
if(!$this->var['user_id'])
|
||||
{
|
||||
$userdata = e107::user(USERID);
|
||||
$this->var = array_merge($this->var, $userdata);
|
||||
}
|
||||
|
||||
$text = $tp->toAvatar($this->var);
|
||||
|
||||
|
Reference in New Issue
Block a user