From 8340fedd6403e5ef68df443476a548ff0d241b67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Fri, 23 Aug 2013 18:29:36 +0200 Subject: fix bug #150 Add support of text files by setting a default title --- inc/poche/Url.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/poche') 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 if($readability->init()) { $content = $readability->articleContent->innerHTML; - $parameters['title'] = $readability->articleTitle->innerHTML; + $parameters['title'] = ($readability->articleTitle->innerHTML != '' ? $readability->articleTitle->innerHTML : _('Untitled')); $parameters['content'] = $content; return $parameters; -- cgit v1.2.3