mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 06:07:32 +02:00
Issue #4217 - incorrect comment avatar.
This commit is contained in:
@@ -112,13 +112,9 @@ class comment_shortcodes extends e_shortcode
|
||||
{
|
||||
$tp = e107::getParser();
|
||||
|
||||
// return $this->var['user_image'];
|
||||
// $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']."}");
|
||||
|
||||
// Posting a new comment (check that it is not an existing comment by anonymous user) - #3813 & 3829
|
||||
if($this->var['comment_author_id'] != '0' && USERID)
|
||||
// https://github.com/e107inc/e107/issues/4217
|
||||
if(!isset($this->var['comment_author_id']) && USERID) // assumes we are writing a new comment, not displaying an existing one.
|
||||
{
|
||||
$userdata = e107::user(USERID);
|
||||
$this->var = array_merge($this->var, $userdata);
|
||||
@@ -134,6 +130,9 @@ class comment_shortcodes extends e_shortcode
|
||||
$text .= '</div>';
|
||||
$text .= '</div>';
|
||||
|
||||
/* unset($this->var['user_prefs']);
|
||||
$text .= print_a($this->var,true);*/
|
||||
|
||||
return $text;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user