diff --git a/kernel/admin/themes/default/init.php b/kernel/admin/themes/default/init.php index 945c3470..c8a0d408 100644 --- a/kernel/admin/themes/default/init.php +++ b/kernel/admin/themes/default/init.php @@ -251,7 +251,7 @@ class HTML { allcomplete: function(response) { bar.css("width", "100%").text("100%"); progressbar.addClass("uk-hidden"); - $("#jsprofilePicture").attr("src", "'.HTML_PATH_UPLOADS_PROFILES.$username.'.jpg?"+new Date().getTime()); + $("#jsprofilePicture").html(""); }, notallowed: function(file, settings) { @@ -269,4 +269,4 @@ class HTML { echo $html; } -} +} \ No newline at end of file diff --git a/kernel/admin/views/edit-user.php b/kernel/admin/views/edit-user.php index 91c4989c..841e8b85 100644 --- a/kernel/admin/views/edit-user.php +++ b/kernel/admin/views/edit-user.php @@ -97,13 +97,18 @@ HTML::formClose(); echo ''; echo '
'; + +echo '
'; if(file_exists(PATH_UPLOADS_PROFILES.$_user['username'].'.jpg')) { - echo ''.$L->g('Profile picture').''; + echo ''; } else { echo '
'.$L->g('Profile picture').'
'; } +echo '
'; + HTML::profileUploader($_user['username']); + echo '
'; echo '';