@ -352,7 +352,7 @@ switch ($action) {
);
}
$parent_id = $document_info['parent_id'];
$my_path = UserManager::getUserPathById(api_get_user_id());
$my_path = UserManager::getUserPathById(api_get_user_id(), 'system');
$user_folder = $my_path.'my_files/';
$my_path = null;
@ -581,7 +581,7 @@ class UserManager
a user has 4 different sized photos to be deleted. */
$user_info = api_get_user_info($user_id);
if (strlen($user_info['picture_uri']) > 0) {
$path = self::getUserPathById($user_id);
$path = self::getUserPathById($user_id, 'system');
$img_path = $path.$user_info['picture_uri'];
if (file_exists($img_path))
unlink($img_path);