aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Controller/EntryController.php
diff options
context:
space:
mode:
authorJérémy Benoist <j0k3r@users.noreply.github.com>2017-12-14 11:19:44 +0100
committerGitHub <noreply@github.com>2017-12-14 11:19:44 +0100
commita68a80f654be86ae25d49420b86099302ce55bb6 (patch)
tree158cb4743920e91f87f2194287b81095f527bad2 /src/Wallabag/CoreBundle/Controller/EntryController.php
parent70265817aee257e7e635eda79ce3e037e3b4a242 (diff)
parentb457d7bd32b0eb228f6802d92630d8f0524f042f (diff)
downloadwallabag-a68a80f654be86ae25d49420b86099302ce55bb6.tar.gz
wallabag-a68a80f654be86ae25d49420b86099302ce55bb6.tar.zst
wallabag-a68a80f654be86ae25d49420b86099302ce55bb6.zip
Merge pull request #3442 from wallabag/empty-entry
Fix empty title and domain_name when exception is thrown during fetch
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller/EntryController.php')
-rw-r--r--src/Wallabag/CoreBundle/Controller/EntryController.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php
index 840dc254..b7fdea27 100644
--- a/src/Wallabag/CoreBundle/Controller/EntryController.php
+++ b/src/Wallabag/CoreBundle/Controller/EntryController.php
@@ -502,6 +502,14 @@ class EntryController extends Controller
502 $message = 'flashes.entry.notice.' . $prefixMessage . '_failed'; 502 $message = 'flashes.entry.notice.' . $prefixMessage . '_failed';
503 } 503 }
504 504
505 if (empty($entry->getDomainName())) {
506 $this->get('wallabag_core.content_proxy')->setEntryDomainName($entry);
507 }
508
509 if (empty($entry->getTitle())) {
510 $this->get('wallabag_core.content_proxy')->setDefaultEntryTitle($entry);
511 }
512
505 $this->get('session')->getFlashBag()->add('notice', $message); 513 $this->get('session')->getFlashBag()->add('notice', $message);
506 } 514 }
507 515