Skip to content

Commit

Permalink
[Core] Include Media RSS namespace for Atom feeds
Browse files Browse the repository at this point in the history
Include Media RSS namespace for Atom feeds
Fix #1511
Fix #1499
  • Loading branch information
SuperSandro2000 authored May 19, 2020
1 parent fa74d37 commit 8047041
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion formats/AtomFormat.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function stringify(){
/* Data are prepared, now let's begin the "MAGIE !!!" */
$toReturn = <<<EOD
<?xml version="1.0" encoding="{$charset}"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/">
<title type="text">{$title}</title>
<id>{$feedUrl}</id>
Expand Down
2 changes: 1 addition & 1 deletion tests/samples/expectedAtomFormat/feed.common.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/">

<title type="text">Sample feed with common data</title>
<id>https://example.com/feed?type=common&amp;items=4</id>
Expand Down
2 changes: 1 addition & 1 deletion tests/samples/expectedAtomFormat/feed.empty.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/">

<title type="text">Sample feed with minimum data</title>
<id>https://example.com/feed</id>
Expand Down
2 changes: 1 addition & 1 deletion tests/samples/expectedAtomFormat/feed.emptyItems.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/">

<title type="text">Sample feed with minimum data</title>
<id>https://example.com/feed</id>
Expand Down
2 changes: 1 addition & 1 deletion tests/samples/expectedAtomFormat/feed.microblog.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/">

<title type="text">Sample microblog feed</title>
<id>https://example.com/feed</id>
Expand Down

0 comments on commit 8047041

Please sign in to comment.