]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Correct the routes for notice and user sitemaps
authorEvan Prodromou <evan@status.net>
Sun, 18 Sep 2011 16:14:43 +0000 (12:14 -0400)
committerEvan Prodromou <evan@status.net>
Sun, 18 Sep 2011 16:14:43 +0000 (12:14 -0400)
plugins/Sitemap/SitemapPlugin.php

index e7711fb339223dce698de27c1592b97e39c161e4..29b822acd54be6014597c32908d8c75c5505e04d 100644 (file)
@@ -108,14 +108,14 @@ class SitemapPlugin extends Plugin
         $m->connect('sitemapindex.xml',
                     array('action' => 'sitemapindex'));
 
-        $m->connect('/notice-sitemap-:year-:month-:day-:index.xml',
+        $m->connect('notice-sitemap-:year-:month-:day-:index.xml',
                     array('action' => 'noticesitemap'),
                     array('year' => '[0-9]{4}',
                           'month' => '[01][0-9]',
                           'day' => '[0123][0-9]',
                           'index' => '[1-9][0-9]*'));
 
-        $m->connect('/user-sitemap-:year-:month-:day-:index.xml',
+        $m->connect('user-sitemap-:year-:month-:day-:index.xml',
                     array('action' => 'usersitemap'),
                     array('year' => '[0-9]{4}',
                           'month' => '[01][0-9]',