mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-16 02:11:05 +01: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