Commit 59974f86 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1660234: Allow title to be alt if no description



behatnotneeded

Change-Id: Idfd653fb5bc00333236a4d0e8a3c00ed42537265
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 2b5f8c4e
......@@ -51,6 +51,7 @@ class PluginBlocktypeImage extends MaharaCoreBlocktype {
else {
$src = $wwwroot . 'artefact/file/download.php?file=' . $id . '&view=' . $viewid;
$description = $image->get('description');
$description = empty($description) ? $image->get('title') : $description;
}
if (!empty($configdata['width'])) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment