Skip to content

Commit

Permalink
Blank titles are filled with the url
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Guillot committed May 6, 2013
1 parent 00644bb commit 5ada718
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions miniflux/vendor/PicoFeed/Parsers/Atom.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ public function execute()
$item->author = $author;
$item->content = $this->filterHtml($this->getContent($entry), $item->url);

if (empty($item->title)) $item->title = $item->url;

$this->items[] = $item;
}

Expand Down
3 changes: 2 additions & 1 deletion miniflux/vendor/PicoFeed/Parsers/Rss10.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ public function execute()
$this->content = $this->normalizeData($this->content);

\libxml_use_internal_errors(true);

$xml = \simplexml_load_string($this->content);

if ($xml === false) {
Expand Down Expand Up @@ -74,6 +73,8 @@ public function execute()
}
}

if (empty($item->title)) $item->title = $item->url;

$item->id = $item->url;
$item->content = $this->filterHtml($item->content, $item->url);
$this->items[] = $item;
Expand Down
2 changes: 2 additions & 0 deletions miniflux/vendor/PicoFeed/Parsers/Rss20.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ public function execute()
$item->id = $item->url;
}

if (empty($item->title)) $item->title = $item->url;

$item->content = $this->filterHtml($item->content, $item->url);
$this->items[] = $item;
}
Expand Down

0 comments on commit 5ada718

Please sign in to comment.