aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-23 18:29:36 +0200
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-23 18:29:36 +0200
commit8340fedd6403e5ef68df443476a548ff0d241b67 (patch)
treefbb63321ab8f532954935bebacad1b650ce8eca6
parentb194cf21dc665023d57ad72e098ea507f7873dd3 (diff)
downloadwallabag-8340fedd6403e5ef68df443476a548ff0d241b67.tar.gz
wallabag-8340fedd6403e5ef68df443476a548ff0d241b67.tar.zst
wallabag-8340fedd6403e5ef68df443476a548ff0d241b67.zip
fix bug #150 Add support of text files by setting a default title
-rw-r--r--inc/poche/Url.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/poche/Url.class.php b/inc/poche/Url.class.php
index 77ed5398..36fdd0f5 100644
--- a/inc/poche/Url.class.php
+++ b/inc/poche/Url.class.php
@@ -84,7 +84,7 @@ class Url
84 if($readability->init()) 84 if($readability->init())
85 { 85 {
86 $content = $readability->articleContent->innerHTML; 86 $content = $readability->articleContent->innerHTML;
87 $parameters['title'] = $readability->articleTitle->innerHTML; 87 $parameters['title'] = ($readability->articleTitle->innerHTML != '' ? $readability->articleTitle->innerHTML : _('Untitled'));
88 $parameters['content'] = $content; 88 $parameters['content'] = $content;
89 89
90 return $parameters; 90 return $parameters;