aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle
diff options
context:
space:
mode:
authorÉtienne Gilli <etienne.gilli@gmail.com>2017-07-08 17:55:58 +0200
committerÉtienne Gilli <etienne.gilli@gmail.com>2017-07-08 19:53:43 +0200
commit07320a2bd25c6ace1f9b1aa06b1b08e8dbf4f4fa (patch)
tree61d8992d8511c324208b8ad9fc9e2c6a8952492d /src/Wallabag/ApiBundle
parentb5d7eb148c4cd62ff187b08765f0c13c7d330fcf (diff)
downloadwallabag-07320a2bd25c6ace1f9b1aa06b1b08e8dbf4f4fa.tar.gz
wallabag-07320a2bd25c6ace1f9b1aa06b1b08e8dbf4f4fa.tar.zst
wallabag-07320a2bd25c6ace1f9b1aa06b1b08e8dbf4f4fa.zip
Use the article domain as author for export files
When exporting an entry, use the domain name as author name for epub, mobi and pdf formats, instead of 'wallabag'. Change the author from array to string, because for now, there is always only one author.
Diffstat (limited to 'src/Wallabag/ApiBundle')
-rw-r--r--src/Wallabag/ApiBundle/Controller/EntryRestController.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/EntryRestController.php b/src/Wallabag/ApiBundle/Controller/EntryRestController.php
index 8a206124..9277e1a1 100644
--- a/src/Wallabag/ApiBundle/Controller/EntryRestController.php
+++ b/src/Wallabag/ApiBundle/Controller/EntryRestController.php
@@ -180,6 +180,7 @@ class EntryRestController extends WallabagRestController
180 return $this->get('wallabag_core.helper.entries_export') 180 return $this->get('wallabag_core.helper.entries_export')
181 ->setEntries($entry) 181 ->setEntries($entry)
182 ->updateTitle('entry') 182 ->updateTitle('entry')
183 ->updateAuthor('entry')
183 ->exportAs($request->attributes->get('_format')); 184 ->exportAs($request->attributes->get('_format'));
184 } 185 }
185 186