diff options
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 |
commit | 07320a2bd25c6ace1f9b1aa06b1b08e8dbf4f4fa (patch) | |
tree | 61d8992d8511c324208b8ad9fc9e2c6a8952492d /src/Wallabag/CoreBundle/Command/ExportCommand.php | |
parent | b5d7eb148c4cd62ff187b08765f0c13c7d330fcf (diff) | |
download | wallabag-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/CoreBundle/Command/ExportCommand.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Command/ExportCommand.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Command/ExportCommand.php b/src/Wallabag/CoreBundle/Command/ExportCommand.php index 0dacb734..c2e4be05 100644 --- a/src/Wallabag/CoreBundle/Command/ExportCommand.php +++ b/src/Wallabag/CoreBundle/Command/ExportCommand.php | |||
@@ -56,6 +56,7 @@ class ExportCommand extends ContainerAwareCommand | |||
56 | $data = $this->getContainer()->get('wallabag_core.helper.entries_export') | 56 | $data = $this->getContainer()->get('wallabag_core.helper.entries_export') |
57 | ->setEntries($entries) | 57 | ->setEntries($entries) |
58 | ->updateTitle('All') | 58 | ->updateTitle('All') |
59 | ->updateAuthor('All') | ||
59 | ->exportJsonData(); | 60 | ->exportJsonData(); |
60 | file_put_contents($filePath, $data); | 61 | file_put_contents($filePath, $data); |
61 | } catch (\InvalidArgumentException $e) { | 62 | } catch (\InvalidArgumentException $e) { |