mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
Merge pull request #2408 from prototech/ticket/12500
[ticket/12500] Set a title attribute in user.img() * prototech/ticket/12500: [ticket/12500] Set a title attribute in user.img()
This commit is contained in:
commit
dcfb4cacd8
1 changed files with 8 additions and 2 deletions
|
@ -795,8 +795,14 @@ class user extends \phpbb\session
|
||||||
*/
|
*/
|
||||||
function img($img, $alt = '')
|
function img($img, $alt = '')
|
||||||
{
|
{
|
||||||
$alt = (!empty($this->lang[$alt])) ? $this->lang[$alt] : $alt;
|
$title = '';
|
||||||
return '<span class="imageset ' . $img . '">' . $alt . '</span>';
|
|
||||||
|
if ($alt)
|
||||||
|
{
|
||||||
|
$alt = $this->lang($alt);
|
||||||
|
$title = ' title="' . $alt . '"';
|
||||||
|
}
|
||||||
|
return '<span class="imageset ' . $img . '"' . $title . '>' . $alt . '</span>';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue