From 97d4829a1d15f027505efc1b1c3ce2b1130e510b Mon Sep 17 00:00:00 2001 From: dignajar Date: Tue, 1 Dec 2015 22:32:55 -0300 Subject: [PATCH] Bug fixed, Profile picture --- kernel/admin/themes/default/init.php | 4 ++-- kernel/admin/views/edit-user.php | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) 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 '';