From 705edee6600d5d437cea5ab89fa008c748d4af11 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Tue, 24 Feb 2026 08:32:34 -0500 Subject: fix redudant title text, make 'here' links more descriptive --- src/web/lib/image.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/web/lib') diff --git a/src/web/lib/image.php b/src/web/lib/image.php index 7b6ec0e..a36b985 100644 --- a/src/web/lib/image.php +++ b/src/web/lib/image.php @@ -41,6 +41,7 @@ function __make_source( function image( $name, $alt, + $title = NULL, $formats = array('webp', 'png'), $animated = FALSE, $attrs = array(), @@ -75,7 +76,10 @@ function image( if ($alt) { $alt = lang($alt); $attrs['alt'] = $alt; - $attrs['title'] = $alt; + } + if ($title) { + $title = lang($title); + $attrs['title'] = $title; } if ($width) { $attrs['width'] = $width; -- cgit v1.2.3-freya