aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJeremy <jeremy.benoist@gmail.com>2015-02-07 18:29:03 +0100
committerJeremy <jeremy.benoist@gmail.com>2015-02-07 18:29:05 +0100
commit94f2364cd82a7390fbeddcdc02a58222bd60fbf3 (patch)
tree11967c08c55db571e335ca039ed22a7e9413eb4f /src
parent8125b415d8f3bd15b8b9169fb8fc528a51603edc (diff)
downloadwallabag-94f2364cd82a7390fbeddcdc02a58222bd60fbf3.tar.gz
wallabag-94f2364cd82a7390fbeddcdc02a58222bd60fbf3.tar.zst
wallabag-94f2364cd82a7390fbeddcdc02a58222bd60fbf3.zip
Fix #1057
Unexisting function
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/CoreBundle/Service/Extractor.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Service/Extractor.php b/src/Wallabag/CoreBundle/Service/Extractor.php
index d38b0d76..e4ec96f6 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 = Extractor::getPageContent(new Url(base64_encode($url))); 12 $pageContent = Extractor::getPageContent(new Url(base64_encode($url)));
13 $title = ($pageContent['rss']['channel']['item']['title'] != '') ? $pageContent['rss']['channel']['item']['title'] : _('Untitled'); 13 $title = $pageContent['rss']['channel']['item']['title'] ?: 'Untitled';
14 $body = $pageContent['rss']['channel']['item']['description']; 14 $body = $pageContent['rss']['channel']['item']['description'];
15 15
16 $content = new Content(); 16 $content = new Content();
@@ -19,6 +19,7 @@ final class Extractor
19 19
20 return $content; 20 return $content;
21 } 21 }
22
22 /** 23 /**
23 * Get the content for a given URL (by a call to FullTextFeed) 24 * Get the content for a given URL (by a call to FullTextFeed)
24 * 25 *