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:
parent
b194cf21dc
commit
8340fedd64
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user