Commit 1622457e authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 2004511: Profile image in image block adjustments



As the profile image does not have 'isdecorative', 'alttext', and
'altiscaption' options we need to handle that when rendering the image

Change-Id: Ifca8eeef80255de9b3099f43f8572417865b9f9a
Signed-off-by: default avatarRobert Lyon <robertl@catalyst.net.nz>
(cherry picked from commit c54cd029)
parent 024b535a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -50,6 +50,9 @@ class PluginBlocktypeImage extends MaharaCoreBlocktype {
        $edittime = '&time=' . time();
        if ($image instanceof ArtefactTypeProfileIcon) {
            $src = $wwwroot . 'thumb.php?type=profileiconbyid&id=' . $id . '&view=' . $viewid . $edittime;
            $isdecorative = false;
            $alttext = '';
            $altiscaption = false;
            $description = $image->get('title');
        }
        else {