]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
correct element name and namespace for sitemapactions
authorEvan Prodromou <evan@status.net>
Sat, 10 Apr 2010 14:03:37 +0000 (10:03 -0400)
committerEvan Prodromou <evan@status.net>
Tue, 1 Jun 2010 20:52:27 +0000 (13:52 -0700)
plugins/Sitemap/sitemapaction.php

index ab80b85eaa67734551568b0012120c7cc50aa93a..bab04ed9d260e2ba5d6236015c6553c4797c08fe 100644 (file)
@@ -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();
     }