Changed function name

This commit is contained in:
Michael 2021-08-09 15:29:07 +00:00
parent 9f01052dd2
commit b8fa75b2dd
34 changed files with 54 additions and 54 deletions

View file

@ -100,17 +100,17 @@ class UserExport extends BaseSettings
switch ($action) {
case "backup":
header("Content-type: application/json");
header('Content-Disposition: attachment; filename="' . DI::app()->getNickname() . '.' . $action . '"');
header('Content-Disposition: attachment; filename="' . DI::app()->getUserNickname() . '.' . $action . '"');
self::exportAll(local_user());
break;
case "account":
header("Content-type: application/json");
header('Content-Disposition: attachment; filename="' . DI::app()->getNickname() . '.' . $action . '"');
header('Content-Disposition: attachment; filename="' . DI::app()->getUserNickname() . '.' . $action . '"');
self::exportAccount(local_user());
break;
case "contact":
header("Content-type: application/csv");
header('Content-Disposition: attachment; filename="' . DI::app()->getNickname() . '-contacts.csv' . '"');
header('Content-Disposition: attachment; filename="' . DI::app()->getUserNickname() . '-contacts.csv' . '"');
self::exportContactsAsCSV(local_user());
break;
}