still retarded

This commit is contained in:
flash 2015-08-09 22:32:58 +02:00
parent 28595a2d35
commit 8d23b2fa67
2 changed files with 5 additions and 1 deletions

View file

@ -1665,6 +1665,10 @@
{
"type": "FIX",
"change": "Fixed old avatars not getting deleted."
},
{
"type": "UPD",
"change": "Redid filestructure."
}
]

View file

@ -243,7 +243,7 @@ if(isset($_REQUEST['request-notifications']) && $_REQUEST['request-notifications
case 'avatar':
// Set path variables
$filepath = ROOT .'content/images/user/';
$filepath = ROOT . Configuration::getConfig('user_uploads') .'/';
$filename = $filepath .'avatar_'. Session::$userId;
$currfile = !empty($_AVA = Users::getUser(Session::$userId)['userData']['userAvatar']) ? $_AVA : null;