summaryrefslogtreecommitdiff
path: root/plugins/Sitemap/SitemapPlugin.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-03-22 08:09:15 -0400
committerEvan Prodromou <evan@status.net>2010-06-01 13:52:27 -0700
commit524cd9df936bd27d5b64fbf08b219b56cb071122 (patch)
tree65c8712e62b4512fbaac98d67528406f1ac31d59 /plugins/Sitemap/SitemapPlugin.php
parentce0e6cb50d88c593db62edd8375c4414e8a8ebf8 (diff)
Add a Notice sitemap
Diffstat (limited to 'plugins/Sitemap/SitemapPlugin.php')
-rw-r--r--plugins/Sitemap/SitemapPlugin.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/Sitemap/SitemapPlugin.php b/plugins/Sitemap/SitemapPlugin.php
index 42ea1dbe6..8889c8930 100644
--- a/plugins/Sitemap/SitemapPlugin.php
+++ b/plugins/Sitemap/SitemapPlugin.php
@@ -96,11 +96,13 @@ class SitemapPlugin extends Plugin
{
$m->connect('sitemapindex.xml',
array('action' => 'sitemapindex'));
- $m->connect('/sitemaps/notice/:year/:month/:day.xml',
+ $m->connect('/sitemaps/notice/:year/:month/:day/:index.xml',
array('action' => 'noticesitemap'),
array('year' => '[0-9]{4}',
'month' => '[1]?[0-9]',
- 'day' => '[123]?[0-9]'));
+ 'day' => '[123]?[0-9]',
+ 'index' => '[0-9]+'));
+
$m->connect('/sitemaps/user/:index.xml',
array('action' => 'usersitemap'),
array('index' => '[0-9]+',