fix avatar display on user page
This commit is contained in:
		
							parent
							
								
									e18c8d27db
								
							
						
					
					
						commit
						3b2a05ac2d
					
				@ -152,11 +152,8 @@ class UserPage extends SimpleExtension {
 | 
				
			|||||||
		$h_join_date = html_escape($event->display_user->join_date);
 | 
							$h_join_date = html_escape($event->display_user->join_date);
 | 
				
			||||||
		$event->add_stats("Join date: $h_join_date", 10);
 | 
							$event->add_stats("Join date: $h_join_date", 10);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if(!empty($comment->owner->email)) {
 | 
							$av = $event->display_user->get_avatar_html();
 | 
				
			||||||
			$hash = md5(strtolower($comment->owner->email));
 | 
							if($av) $event->add_stats($av, 0);
 | 
				
			||||||
			$avatar = "<img src=\"http://www.gravatar.com/avatar/$hash.jpg\" style='float: left;'>";
 | 
					 | 
				
			||||||
			$event->add_stats($avatar, 0);
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
		ksort($event->stats);
 | 
							ksort($event->stats);
 | 
				
			||||||
		$this->theme->display_user_page($event->display_user, $event->stats);
 | 
							$this->theme->display_user_page($event->display_user, $event->stats);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user