Commit 64e5c785 authored by Nigel McNie's avatar Nigel McNie
Browse files

Fix profile icons being unable to be downloaded. Thanks to sirebral on

the forums.

Related to 7084335d06491cf0a028f45315838d56e4c8f4f8 on 1.0_STABLE but
reworked as the profileicon artefact is now handled by 'file'.
parent ecbd695a
......@@ -1314,9 +1314,6 @@ class ArtefactTypeProfileIcon extends ArtefactTypeImage {
. ($this->get('id') % 256) . '/' . $this->get('id'));
$downloadpath = get_config('wwwroot') . 'thumb.php?type=profileiconbyid&id=' . $this->id;
if (isset($options['viewid'])) {
$downloadpath .= '&id=' . $options['viewid'];
}
$smarty = smarty_core();
$smarty->assign('iconpath', $this->get_icon($options));
$smarty->assign('downloadpath', $downloadpath);
......
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