diff --git a/formats/AtomFormat.php b/formats/AtomFormat.php index c1bde25f..80a388df 100644 --- a/formats/AtomFormat.php +++ b/formats/AtomFormat.php @@ -130,7 +130,7 @@ EOD; /* 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> diff --git a/tests/samples/expectedAtomFormat/feed.common.xml b/tests/samples/expectedAtomFormat/feed.common.xml index 80cb0df4..aa6d0687 100644 --- a/tests/samples/expectedAtomFormat/feed.common.xml +++ b/tests/samples/expectedAtomFormat/feed.common.xml @@ -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&items=4</id> diff --git a/tests/samples/expectedAtomFormat/feed.empty.xml b/tests/samples/expectedAtomFormat/feed.empty.xml index 371135b6..fc04304d 100644 --- a/tests/samples/expectedAtomFormat/feed.empty.xml +++ b/tests/samples/expectedAtomFormat/feed.empty.xml @@ -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> diff --git a/tests/samples/expectedAtomFormat/feed.emptyItems.xml b/tests/samples/expectedAtomFormat/feed.emptyItems.xml index 462a4e5c..989893fa 100644 --- a/tests/samples/expectedAtomFormat/feed.emptyItems.xml +++ b/tests/samples/expectedAtomFormat/feed.emptyItems.xml @@ -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> diff --git a/tests/samples/expectedAtomFormat/feed.microblog.xml b/tests/samples/expectedAtomFormat/feed.microblog.xml index a6264aee..32bc0273 100644 --- a/tests/samples/expectedAtomFormat/feed.microblog.xml +++ b/tests/samples/expectedAtomFormat/feed.microblog.xml @@ -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>