diff options
Diffstat (limited to 'phpBB/phpbb/user_loader.php')
| -rw-r--r-- | phpBB/phpbb/user_loader.php | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/phpBB/phpbb/user_loader.php b/phpBB/phpbb/user_loader.php index 0b192e4452..cdd28329db 100644 --- a/phpBB/phpbb/user_loader.php +++ b/phpBB/phpbb/user_loader.php @@ -179,9 +179,10 @@ class user_loader  	* @param bool $query Should we query the database if this user has not yet been loaded?  	* 						Typically this should be left as false and you should make sure  	* 						you load users ahead of time with load_users() +	* @param bool @lazy If true, will be lazy loaded (requires JS)  	* @return string  	*/ -	public function get_avatar($user_id, $query = false) +	public function get_avatar($user_id, $query = false, $lazy = false)  	{  		if (!($user = $this->get_user($user_id, $query)))  		{ @@ -195,7 +196,7 @@ class user_loader  			'avatar_height'	=> $user['user_avatar_height'],  		); -		return phpbb_get_avatar($row, 'USER_AVATAR'); +		return phpbb_get_avatar($row, 'USER_AVATAR', false, $lazy);  	}  	/** | 
