Commit bff6e462 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1660234: Allow title to be alt if no description"

parents 74a57e96 59974f86
......@@ -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