mirror of
https://github.com/moparisthebest/wallabag
synced 2024-12-04 06:42:21 -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())
|
if($readability->init())
|
||||||
{
|
{
|
||||||
$content = $readability->articleContent->innerHTML;
|
$content = $readability->articleContent->innerHTML;
|
||||||
$parameters['title'] = $readability->articleTitle->innerHTML;
|
$parameters['title'] = ($readability->articleTitle->innerHTML != '' ? $readability->articleTitle->innerHTML : _('Untitled'));
|
||||||
$parameters['content'] = $content;
|
$parameters['content'] = $content;
|
||||||
|
|
||||||
return $parameters;
|
return $parameters;
|
||||||
|
Loading…
Reference in New Issue
Block a user