phpBB

Code Changes

File: includes/functions_compatibility.php

  Unmodified   Added   Modified   Removed
Line 30Line 30
* @param string $avatar_height Height of users avatar
* @param string $alt Optional language string for alt tag within image, can be a language key or text
* @param bool $ignore_config Ignores the config-setting, to be still able to view the avatar in the UCP

* @param string $avatar_height Height of users avatar
* @param string $alt Optional language string for alt tag within image, can be a language key or text
* @param bool $ignore_config Ignores the config-setting, to be still able to view the avatar in the UCP

 
* @param bool $lazy If true, will be lazy loaded (requires JS)

*
* @return string Avatar image
*/

*
* @return string Avatar image
*/

function get_user_avatar($avatar, $avatar_type, $avatar_width, $avatar_height, $alt = 'USER_AVATAR', $ignore_config = false)

function get_user_avatar($avatar, $avatar_type, $avatar_width, $avatar_height, $alt = 'USER_AVATAR', $ignore_config = false, $lazy = false)

{
// map arguments to new function phpbb_get_avatar()
$row = array(

{
// map arguments to new function phpbb_get_avatar()
$row = array(

Line 43Line 44
		'avatar_height'	=> $avatar_height,
);


		'avatar_height'	=> $avatar_height,
);


	return phpbb_get_avatar($row, $alt, $ignore_config);

	return phpbb_get_avatar($row, $alt, $ignore_config, $lazy);

}

/**

}

/**