1
0
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:
Tijn Kuyper
2019-05-24 10:55:53 +02:00
parent 9a44513c91
commit 473109bd9b

View File

@ -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);