Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
fixed wrong link type
Browse files Browse the repository at this point in the history
  • Loading branch information
Roumen Damianoff committed Dec 11, 2015
1 parent db890d3 commit dce91e2
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/Roumen/Feed/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,18 +204,7 @@ public function link($url, $format='atom')

if ($this->ctype == null)
{
switch ($format)
{
case "rss":
$type = 'application/rss+xml';
break;
case "atom":
$type = 'application/atom+xml';
break;
default:
$type = 'application/atom+xml';
break;
}
($format == 'rss') ? $type = 'application/rss+xml' : $type = 'application/atom+xml';
}
else
{
Expand Down

0 comments on commit dce91e2

Please sign in to comment.