Merge pull request #1296 from wallabag/v2-fix-564

fix #564: replace Untitled by the domain name
This commit is contained in:
Thomas Citharel 2015-08-08 20:58:03 +02:00
commit e9d5c2bf02

View file

@ -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();