mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-06 06:25:04 +02:00
[ticket/12500] Set a title attribute in user.img()
PHPBB3-12500
This commit is contained in:
parent
6cca7d0443
commit
fad41a6874
@ -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…
x
Reference in New Issue
Block a user