1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-12-03 14:22:19 -05:00

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;