aboutsummaryrefslogtreecommitdiff
path: root/cli/export-opml-for-user.php
diff options
context:
space:
mode:
Diffstat (limited to 'cli/export-opml-for-user.php')
-rwxr-xr-xcli/export-opml-for-user.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/cli/export-opml-for-user.php b/cli/export-opml-for-user.php
index 4634d47d6..c6977f0ef 100755
--- a/cli/export-opml-for-user.php
+++ b/cli/export-opml-for-user.php
@@ -16,11 +16,10 @@ $username = cliInitUser($options['user']);
fwrite(STDERR, 'FreshRSS exporting OPML for user “' . $username . "”…\n");
-$importController = new FreshRSS_importExport_Controller();
-
-$ok = false;
-$ok = $importController->exportFile($username, true, false, false, array(), 0);
+$export_service = new FreshRSS_Export_Service($username);
+list($filename, $content) = $export_service->generateOpml();
+echo $content;
invalidateHttpCache($username);
-done($ok);
+done();