From: Evan Prodromou Date: Sat, 10 Apr 2010 14:03:37 +0000 (-0400) Subject: correct element name and namespace for sitemapactions X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d65a65756b88347b208b10f6abd2573d7703b6d5;p=quix0rs-gnu-social.git correct element name and namespace for sitemapactions --- diff --git a/plugins/Sitemap/sitemapaction.php b/plugins/Sitemap/sitemapaction.php index ab80b85eaa..bab04ed9d2 100644 --- a/plugins/Sitemap/sitemapaction.php +++ b/plugins/Sitemap/sitemapaction.php @@ -56,13 +56,13 @@ class SitemapAction extends Action header('Content-Type: text/xml; charset=UTF-8'); $this->startXML(); - $this->elementStart('sitemap'); + $this->elementStart('urlset', array('xmlns' => 'http://www.sitemaps.org/schemas/sitemap/0.9')); while (list($url, $lm, $cf, $p) = $this->nextUrl()) { $this->showUrl($url, $lm, $cf, $p); } - $this->elementEnd('sitemap'); + $this->elementEnd('urlset'); $this->endXML(); }