still retarded
This commit is contained in:
parent
28595a2d35
commit
8d23b2fa67
2 changed files with 5 additions and 1 deletions
|
@ -1665,6 +1665,10 @@
|
||||||
{
|
{
|
||||||
"type": "FIX",
|
"type": "FIX",
|
||||||
"change": "Fixed old avatars not getting deleted."
|
"change": "Fixed old avatars not getting deleted."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "UPD",
|
||||||
|
"change": "Redid filestructure."
|
||||||
}
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
|
@ -243,7 +243,7 @@ if(isset($_REQUEST['request-notifications']) && $_REQUEST['request-notifications
|
||||||
case 'avatar':
|
case 'avatar':
|
||||||
|
|
||||||
// Set path variables
|
// Set path variables
|
||||||
$filepath = ROOT .'content/images/user/';
|
$filepath = ROOT . Configuration::getConfig('user_uploads') .'/';
|
||||||
$filename = $filepath .'avatar_'. Session::$userId;
|
$filename = $filepath .'avatar_'. Session::$userId;
|
||||||
$currfile = !empty($_AVA = Users::getUser(Session::$userId)['userData']['userAvatar']) ? $_AVA : null;
|
$currfile = !empty($_AVA = Users::getUser(Session::$userId)['userData']['userAvatar']) ? $_AVA : null;
|
||||||
|
|
||||||
|
|
Reference in a new issue