Commit 62f87c3f authored by Aaron Wells's avatar Aaron Wells
Browse files

Make the user's own profile icon a link to the Profile Icon content tab


Change-Id: I458cfd08a0326f3e21aefe656e00bcdeb6c85bbc
Signed-off-by: Aaron Wells's avatarAaron Wells <>
parent 6f31868e
......@@ -246,6 +246,7 @@ $string['profileicons'] = 'Profile pictures';
$string['Default'] = 'Default';
$string['defaultprofileicon'] = 'This is currently set as your default profile picture.';
$string['deleteselectedicons'] = 'Delete selected profile pictures';
$string['editprofileicon'] = 'Edit profile picture';
$string['profileicon'] = 'Profile picture';
$string['noimagesfound'] = 'No images found';
$string['profileiconaddedtoimagesfolder'] = "Your profile picture has been uploaded to your '%s' folder.";
......@@ -2475,6 +2475,7 @@ function profile_sideblock() {
'myname' => display_name($USER, null, true),
'username' => $USER->get('username'),
'url' => profile_url($USER),
'profileiconurl' => get_config('wwwroot') . 'artefact/file/profileicons.php',
$authinstance = $SESSION->get('mnetuser') ? $SESSION->get('authinstance') : $USER->get('authinstance');
<div class="sidebar-header">
<div id="user-profileicon">
<a href="{$sbdata.url}"><img src="{profile_icon_url user=$ maxheight=50 maxwidth=50}" alt=""></a>
<a href="{$sbdata.profileiconurl}" title="{str tag="editprofileicon" section="artefact.file"}"><img src="{profile_icon_url user=$ maxheight=50 maxwidth=50}" alt=""></a>
<h3><a href="{$sbdata.url}">{$sbdata.myname}</a></h3>
Supports Markdown
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