diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2004-10-13 20:41:55 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2004-10-13 20:41:55 +0000 |
| commit | 028c05a9a6977287380398119633ff789d23a49d (patch) | |
| tree | c063a556593f1ea80d8769becdf9dfdb91451d20 /phpBB/includes/session.php | |
| parent | c941f666cf5184b508589fc151772f42f1a2d4c5 (diff) | |
| download | forums-028c05a9a6977287380398119633ff789d23a49d.tar forums-028c05a9a6977287380398119633ff789d23a49d.tar.gz forums-028c05a9a6977287380398119633ff789d23a49d.tar.bz2 forums-028c05a9a6977287380398119633ff789d23a49d.tar.xz forums-028c05a9a6977287380398119633ff789d23a49d.zip | |
- 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
Diffstat (limited to 'phpBB/includes/session.php')
| -rw-r--r-- | phpBB/includes/session.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php index 36ca2c1ae7..950ab868a9 100644 --- a/phpBB/includes/session.php +++ b/phpBB/includes/session.php @@ -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 |
