Permalink
Browse files

[feature/events] Renamed $empty_avatar to $default_avatar

PHPBB3-9550
  • Loading branch information...
1 parent 68ddbcb commit 974c0e408d1427d4e4324d65b9e59018f1b05194 @imkingdavid imkingdavid committed Jun 11, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 phpBB/includes/functions_display.php
@@ -1308,15 +1308,15 @@ function get_user_avatar($avatar, $avatar_type, $avatar_width, $avatar_height, $
if (empty($avatar) || !$avatar_type || (!$config['allow_avatar'] && !$ignore_config))
{
- $empty_avatar = '';
+ $default_avatar = '';
if ($config['allow_avatar'] || $ignore_config)
{
// This allows extensions to change the default return when no avatar is given
// Useful for default avatars
- $vars = array('empty_avatar');
+ $vars = array('default_avatar');
extract($phpbb_dispatcher->trigger_event('core.user_default_avatar', compact($vars)));
}
- return $empty_avatar;
+ return $default_avatar;
}
$avatar_img = '';

0 comments on commit 974c0e4

Please sign in to comment.