diff options
Diffstat (limited to 'phpBB/phpbb')
| -rw-r--r-- | phpBB/phpbb/user.php | 10 | 
1 files changed, 8 insertions, 2 deletions
diff --git a/phpBB/phpbb/user.php b/phpBB/phpbb/user.php index f8e473dcad..591b5ca30d 100644 --- a/phpBB/phpbb/user.php +++ b/phpBB/phpbb/user.php @@ -795,8 +795,14 @@ class user extends \phpbb\session  	*/  	function img($img, $alt = '')  	{ -		$alt = (!empty($this->lang[$alt])) ? $this->lang[$alt] : $alt; -		return '<span class="imageset ' . $img . '">' . $alt . '</span>'; +		$title = ''; + +		if ($alt) +		{ +			$alt = $this->lang($alt); +			$title = ' title="' . $alt . '"'; +		} +		return '<span class="imageset ' . $img . '"' . $title . '>' . $alt . '</span>';  	}  	/**  | 
