fix bug #150 Add support of text files by setting a default title

This commit is contained in:
Nicolas Lœuillet 2013-08-23 18:29:36 +02:00
parent b194cf21dc
commit 8340fedd64

View File

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