aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Uexport.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-10-16 18:10:23 +0000
committerMario <mario@mariovavti.com>2021-10-16 18:10:23 +0000
commit27401794e113351f5f9a781bf7fdcca276c9a94d (patch)
tree4c90737eb241d466fe858f6ba9c3e559a8b8177e /Zotlabs/Module/Uexport.php
parent862a7c2dbada4ec6b293d4c428e0272bec2f9e11 (diff)
downloadvolse-hubzilla-27401794e113351f5f9a781bf7fdcca276c9a94d.tar.gz
volse-hubzilla-27401794e113351f5f9a781bf7fdcca276c9a94d.tar.bz2
volse-hubzilla-27401794e113351f5f9a781bf7fdcca276c9a94d.zip
rename functions after heavy lifting and expand custom sections to all possible sections
Diffstat (limited to 'Zotlabs/Module/Uexport.php')
-rw-r--r--Zotlabs/Module/Uexport.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Module/Uexport.php b/Zotlabs/Module/Uexport.php
index c9f02fb35..8116f616b 100644
--- a/Zotlabs/Module/Uexport.php
+++ b/Zotlabs/Module/Uexport.php
@@ -56,7 +56,7 @@ class Uexport extends Controller {
break;
case 'custom':
default:
- $custom_sections = ['chatrooms', 'events', 'webpages', 'wikis'];
+ $custom_sections = ['channel', 'connections', 'config', 'apps', 'chatrooms', 'events', 'webpages', 'wikis'];
$raw_sections = (($_REQUEST['sections']) ? explode(',', $_REQUEST['sections']) : '');
if ($raw_sections) {
foreach ($raw_sections as $raw_section) {
@@ -93,7 +93,7 @@ class Uexport extends Controller {
$month = 1;
while ($month <= 12) {
$name = $channel['channel_address'] . '-' . $year . '-' . $month . '.json';
- $content = identity_export_year(local_channel(), $year, $month, $zap_compat);
+ $content = conv_item_export_year(local_channel(), $year, $month, $zap_compat);
if(isset($content['item'])) {
$zip_content_available = true;
$zip->addFromString($name, json_encode($content));
@@ -125,7 +125,7 @@ class Uexport extends Controller {
killme();
}
elseif ($year && $month) {
- $export = json_encode(identity_export_year(local_channel(), $year, $month, $zap_compat));
+ $export = json_encode(conv_item_export_year(local_channel(), $year, $month, $zap_compat));
header('Content-Type: application/json');
header('Content-Disposition: attachment; filename="' . $channel['channel_address'] . '-' . $year . '-' . $month . '.json"');