aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_compatibility.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-06-16 12:33:17 +0200
committerMarc Alexander <admin@m-a-styles.de>2015-06-16 12:33:17 +0200
commitdc9245dd7a5a13f67667df835957740b553d2313 (patch)
tree7bb1eb6e7c20a94e4e14fab371882cdb8e46ccbc /phpBB/includes/functions_compatibility.php
parentc6308ee7c0681b5c99185f009e7a59f1c7c8f1d5 (diff)
parentd1c4f5bc352b89da7b0fba4925c68f596f623494 (diff)
downloadforums-dc9245dd7a5a13f67667df835957740b553d2313.tar
forums-dc9245dd7a5a13f67667df835957740b553d2313.tar.gz
forums-dc9245dd7a5a13f67667df835957740b553d2313.tar.bz2
forums-dc9245dd7a5a13f67667df835957740b553d2313.tar.xz
forums-dc9245dd7a5a13f67667df835957740b553d2313.zip
Merge pull request #3653 from callumacrae/ticket/13882
[ticket/13882] Lazy load the notification avatars.
Diffstat (limited to 'phpBB/includes/functions_compatibility.php')
-rw-r--r--phpBB/includes/functions_compatibility.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/functions_compatibility.php b/phpBB/includes/functions_compatibility.php
index 43952ae57a..b59c7376e9 100644
--- a/phpBB/includes/functions_compatibility.php
+++ b/phpBB/includes/functions_compatibility.php
@@ -30,10 +30,11 @@ if (!defined('IN_PHPBB'))
* @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
*/
-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(
@@ -43,7 +44,7 @@ function get_user_avatar($avatar, $avatar_type, $avatar_width, $avatar_height, $
'avatar_height' => $avatar_height,
);
- return phpbb_get_avatar($row, $alt, $ignore_config);
+ return phpbb_get_avatar($row, $alt, $ignore_config, $lazy);
}
/**