summaryrefslogtreecommitdiffstats
path: root/opmlexporter.php
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2012-11-22 23:44:35 -0500
committerAlessandro Cosentino <cosenal@gmail.com>2012-11-22 23:44:35 -0500
commitc4734c5904f9999fdf2cda905941e34829a49ded (patch)
tree4606a094b6ecf3ea53727794c141e97825ad80f2 /opmlexporter.php
parent808e221b52646a4e00fcc9b03748998d05a2fa47 (diff)
changes name of export file; fixes issues #189
Diffstat (limited to 'opmlexporter.php')
-rw-r--r--opmlexporter.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/opmlexporter.php b/opmlexporter.php
index ed3c272ea..93f95a74e 100644
--- a/opmlexporter.php
+++ b/opmlexporter.php
@@ -40,7 +40,8 @@ $foldermapper = new OCA\News\FolderMapper($userid);
$allfeeds = $foldermapper->childrenOfWithFeeds(0);
header('Content-Type: application/x.opml+xml');
-header('Content-Disposition: inline; filename=owncloud_news_subscriptions.xml');
+$filename = 'ownCloud ' . $l->t('News') . ' ' . $userid;
+header('Content-Disposition: inline; filename="' . $filename . '.opml"');
$dom = new DomDocument('1.0', 'UTF-8');
$dom->formatOutput = true;