From 0bc2baa65cad31bcd353e82480ec3f6dc2e792a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Fri, 7 Aug 2015 21:57:53 +0200 Subject: fix #564: replace Untitled by the domain name --- src/Wallabag/CoreBundle/Service/Extractor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Wallabag/CoreBundle/Service/Extractor.php b/src/Wallabag/CoreBundle/Service/Extractor.php index 6d43a1da..961ac20a 100644 --- a/src/Wallabag/CoreBundle/Service/Extractor.php +++ b/src/Wallabag/CoreBundle/Service/Extractor.php @@ -10,7 +10,7 @@ final class Extractor public static function extract($url) { $pageContent = self::getPageContent(new Url(base64_encode($url))); - $title = $pageContent['rss']['channel']['item']['title'] ?: 'Untitled'; + $title = $pageContent['rss']['channel']['item']['title'] ?: parse_url($url, PHP_URL_HOST); $body = $pageContent['rss']['channel']['item']['description']; $content = new Content(); -- cgit v1.2.3