We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit e7e50926 authored by Evan Prodromou's avatar Evan Prodromou

correct element name and namespace for sitemapactions

parent cf7dd2a6
...@@ -56,13 +56,13 @@ class SitemapAction extends Action ...@@ -56,13 +56,13 @@ class SitemapAction extends Action
header('Content-Type: text/xml; charset=UTF-8'); header('Content-Type: text/xml; charset=UTF-8');
$this->startXML(); $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()) { while (list($url, $lm, $cf, $p) = $this->nextUrl()) {
$this->showUrl($url, $lm, $cf, $p); $this->showUrl($url, $lm, $cf, $p);
} }
$this->elementEnd('sitemap'); $this->elementEnd('urlset');
$this->endXML(); $this->endXML();
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment