aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2015-08-08 20:58:03 +0200
committerThomas Citharel <tcit@tcit.fr>2015-08-08 20:58:03 +0200
commite9d5c2bf02fca888aaca49d811bd78a0a7ec808c (patch)
treeac22b4142ba03d5ceb31c7022d9a99a6adeace54 /src
parent54139268f8648ee8d08f120949df4f1f5b8dd938 (diff)
parent0bc2baa65cad31bcd353e82480ec3f6dc2e792a7 (diff)
downloadwallabag-e9d5c2bf02fca888aaca49d811bd78a0a7ec808c.tar.gz
wallabag-e9d5c2bf02fca888aaca49d811bd78a0a7ec808c.tar.zst
wallabag-e9d5c2bf02fca888aaca49d811bd78a0a7ec808c.zip
Merge pull request #1296 from wallabag/v2-fix-564
fix #564: replace Untitled by the domain name
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/CoreBundle/Service/Extractor.php2
1 files changed, 1 insertions, 1 deletions
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
10 public static function extract($url) 10 public static function extract($url)
11 { 11 {
12 $pageContent = self::getPageContent(new Url(base64_encode($url))); 12 $pageContent = self::getPageContent(new Url(base64_encode($url)));
13 $title = $pageContent['rss']['channel']['item']['title'] ?: 'Untitled'; 13 $title = $pageContent['rss']['channel']['item']['title'] ?: parse_url($url, PHP_URL_HOST);
14 $body = $pageContent['rss']['channel']['item']['description']; 14 $body = $pageContent['rss']['channel']['item']['description'];
15 15
16 $content = new Content(); 16 $content = new Content();