diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-10-30 19:50:00 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-10-30 19:50:00 +0100 |
commit | 41ada277f066ea57947bce05bcda63962b7fea55 (patch) | |
tree | 2c81f8bc70cc2e0a625924ccdb5d9bc649d8292d /src/Wallabag/CoreBundle/Event/Subscriber | |
parent | 48656e0eaac006a80f21e9aec8900747fe76283a (diff) | |
download | wallabag-41ada277f066ea57947bce05bcda63962b7fea55.tar.gz wallabag-41ada277f066ea57947bce05bcda63962b7fea55.tar.zst wallabag-41ada277f066ea57947bce05bcda63962b7fea55.zip |
Add instance url to the downloaded images
Diffstat (limited to 'src/Wallabag/CoreBundle/Event/Subscriber')
-rw-r--r-- | src/Wallabag/CoreBundle/Event/Subscriber/DownloadImagesSubscriber.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Event/Subscriber/DownloadImagesSubscriber.php b/src/Wallabag/CoreBundle/Event/Subscriber/DownloadImagesSubscriber.php index 09f8e911..0792653e 100644 --- a/src/Wallabag/CoreBundle/Event/Subscriber/DownloadImagesSubscriber.php +++ b/src/Wallabag/CoreBundle/Event/Subscriber/DownloadImagesSubscriber.php | |||
@@ -110,6 +110,8 @@ class DownloadImagesSubscriber implements EventSubscriber | |||
110 | */ | 110 | */ |
111 | public function downloadImages(Config $config, Entry $entry) | 111 | public function downloadImages(Config $config, Entry $entry) |
112 | { | 112 | { |
113 | $this->downloadImages->setWallabagUrl($config->get('wallabag_url')); | ||
114 | |||
113 | // if ($config->get('download_images_with_rabbitmq')) { | 115 | // if ($config->get('download_images_with_rabbitmq')) { |
114 | 116 | ||
115 | // } else if ($config->get('download_images_with_redis')) { | 117 | // } else if ($config->get('download_images_with_redis')) { |
@@ -132,6 +134,8 @@ class DownloadImagesSubscriber implements EventSubscriber | |||
132 | */ | 134 | */ |
133 | public function downloadPreviewImage(Config $config, Entry $entry) | 135 | public function downloadPreviewImage(Config $config, Entry $entry) |
134 | { | 136 | { |
137 | $this->downloadImages->setWallabagUrl($config->get('wallabag_url')); | ||
138 | |||
135 | // if ($config->get('download_images_with_rabbitmq')) { | 139 | // if ($config->get('download_images_with_rabbitmq')) { |
136 | 140 | ||
137 | // } else if ($config->get('download_images_with_redis')) { | 141 | // } else if ($config->get('download_images_with_redis')) { |