]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
change URLs for user sitemap
authorEvan Prodromou <evan@status.net>
Sat, 10 Apr 2010 14:21:19 +0000 (10:21 -0400)
committerEvan Prodromou <evan@status.net>
Tue, 1 Jun 2010 20:52:27 +0000 (13:52 -0700)
plugins/Sitemap/SitemapPlugin.php

index 40263aaeef206aab1b68f98b39dd73c82ea94af9..5b2af487959c736cb64ec15e3816096e96c11c13 100644 (file)
@@ -95,11 +95,12 @@ class SitemapPlugin extends Plugin
                           'day' => '[0123][0-9]',
                           'index' => '[1-9][0-9]*'));
 
-        $m->connect('/sitemaps/user/:index.xml',
+        $m->connect('/sitemaps/user/:year/:month/:day/:index.xml',
                     array('action' => 'usersitemap'),
-                    array('index' => '[0-9]+',
-                          'month' => '[1]?[0-9]',
-                          'day' => '[123]?[0-9]'));
+                    array('year' => '[0-9]{4}',
+                          'month' => '[01][0-9]',
+                          'day' => '[0123][0-9]',
+                          'index' => '[1-9][0-9]*'));
         return true;
     }
 }