From: Tobias Diekershoff Date: Sun, 3 Nov 2019 11:59:14 +0000 (+0100) Subject: we only need one contact export, D* _only_ exports the entire profile X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e5e87d546d5bff32853a9a23b828dfe045f9023c;p=friendica.git we only need one contact export, D* _only_ exports the entire profile --- diff --git a/src/Module/Settings/UserExport.php b/src/Module/Settings/UserExport.php index ee6460c702..74360f5cdd 100644 --- a/src/Module/Settings/UserExport.php +++ b/src/Module/Settings/UserExport.php @@ -43,7 +43,7 @@ class UserExport extends BaseSettingsModule $options = [ ['settings/userexport/account', L10n::t('Export account'), L10n::t('Export your account info and contacts. Use this to make a backup of your account and/or to move it to another server.')], ['settings/userexport/backup', L10n::t('Export all'), L10n::t("Export your accout info, contacts and all your items as json. Could be a very big file, and could take a lot of time. Use this to make a full backup of your account \x28photos are not exported\x29")], - ['settings/userexport/contactcsv', L10n::t('Export Contacts to CSV'), L10n::t("Export the list of the accounts you are following as CSV file. Compatible to e.g. Mastodon.")], + ['settings/userexport/contact', L10n::t('Export Contacts to CSV'), L10n::t("Export the list of the accounts you are following as CSV file. Compatible to e.g. Mastodon.")], ]; Hook::callAll('uexport_options', $options); @@ -79,7 +79,7 @@ class UserExport extends BaseSettingsModule self::exportAccount(self::getApp()); exit(); break; - case "contactcsv": + case "contact": header("Content-type: application/csv"); header('Content-Disposition: attachment; filename="' . $user['nickname'] . '-contacts.csv'. '"'); self::exportContactsAsCSV(self::getApp());