mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
- fix $user->img (once assigned alt/title tag not able to be overwritten because of static variable)
git-svn-id: file:///svn/phpbb/trunk@5002 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
c941f666cf
commit
028c05a9a6
1 changed files with 3 additions and 3 deletions
|
@ -773,12 +773,12 @@ class user extends session
|
|||
$imgsrc = '"' . $phpbb_root_path . 'styles/' . $this->theme['primary']['imageset_path'] . '/imageset/' . str_replace('{LANG}', $this->img_lang, $imgsrc) . '"';
|
||||
$width = ($width) ? ' width="' . $width . '"' : '';
|
||||
$height = ($height) ? ' height="' . $height . '"' : '';
|
||||
$alt = (!empty($this->lang[$alt])) ? $this->lang[$alt] : $alt;
|
||||
|
||||
$imgs[$img . $suffix] = '<img src=' . $imgsrc . $width . $height . ' alt="' . $alt . '" title="' . $alt . '" name="' . $img . '" />';
|
||||
$imgs[$img . $suffix] = $imgsrc . $width . $height;
|
||||
}
|
||||
|
||||
return $imgs[$img . $suffix];
|
||||
$alt = (!empty($this->lang[$alt])) ? $this->lang[$alt] : $alt;
|
||||
return '<img src=' . $imgs[$img . $suffix] . ' alt="' . $alt . '" title="' . $alt . '" name="' . $img . '" />';
|
||||
}
|
||||
|
||||
// Start code for checking/setting option bit field for user table
|
||||
|
|
Loading…
Add table
Reference in a new issue