diff options
Diffstat (limited to 'src/Wallabag/CoreBundle')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/EntryController.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php index 8e714763..e6580a57 100644 --- a/src/Wallabag/CoreBundle/Controller/EntryController.php +++ b/src/Wallabag/CoreBundle/Controller/EntryController.php | |||
@@ -32,6 +32,7 @@ class EntryController extends Controller | |||
32 | if ($form->isValid()) { | 32 | if ($form->isValid()) { |
33 | $content = $this->get('wallabag_core.graby')->fetchContent($entry->getUrl()); | 33 | $content = $this->get('wallabag_core.graby')->fetchContent($entry->getUrl()); |
34 | 34 | ||
35 | $entry->setUrl($content['url'] ?: $entry->getUrl()); | ||
35 | $entry->setTitle($content['title']); | 36 | $entry->setTitle($content['title']); |
36 | $entry->setContent($content['html']); | 37 | $entry->setContent($content['html']); |
37 | $entry->setMimetype($content['content_type']); | 38 | $entry->setMimetype($content['content_type']); |