summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-04-10 10:21:19 -0400
committerEvan Prodromou <evan@status.net>2010-06-01 13:52:27 -0700
commit63c4eef64322da6a360c9ef3d7e1a20de9ca9cdd (patch)
tree3fed78dffbd04147ba51e40dac384715e55218b2
parent9e592baa39dfab0c1e09c4356fb8d434379797c3 (diff)
change URLs for user sitemap
-rw-r--r--plugins/Sitemap/SitemapPlugin.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/Sitemap/SitemapPlugin.php b/plugins/Sitemap/SitemapPlugin.php
index 40263aaee..5b2af4879 100644
--- a/plugins/Sitemap/SitemapPlugin.php
+++ b/plugins/Sitemap/SitemapPlugin.php
@@ -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;
}
}