- 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:
Meik Sievertsen 2004-10-13 20:41:55 +00:00
parent c941f666cf
commit 028c05a9a6

View file

@ -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) . '"'; $imgsrc = '"' . $phpbb_root_path . 'styles/' . $this->theme['primary']['imageset_path'] . '/imageset/' . str_replace('{LANG}', $this->img_lang, $imgsrc) . '"';
$width = ($width) ? ' width="' . $width . '"' : ''; $width = ($width) ? ' width="' . $width . '"' : '';
$height = ($height) ? ' height="' . $height . '"' : ''; $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 // Start code for checking/setting option bit field for user table