summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-04-10 10:03:37 -0400
committerEvan Prodromou <evan@status.net>2010-04-28 18:41:27 -0400
commite7e50926416f5617bcb94928a2d27a9de8b2f231 (patch)
tree061ddb939cda8ea4a5412d78cf70e40a6e27cafa
parentcf7dd2a6afbc5477dd29352e9a6a6de735540c11 (diff)
correct element name and namespace for sitemapactions
-rw-r--r--plugins/Sitemap/sitemapaction.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Sitemap/sitemapaction.php b/plugins/Sitemap/sitemapaction.php
index ab80b85ea..bab04ed9d 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();
}