change URLs for user sitemap

This commit is contained in:
Evan Prodromou 2010-04-10 10:21:19 -04:00
parent 9e592baa39
commit 63c4eef643

View File

@ -95,11 +95,12 @@ class SitemapPlugin extends Plugin
'day' => '[0123][0-9]', 'day' => '[0123][0-9]',
'index' => '[1-9][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('action' => 'usersitemap'),
array('index' => '[0-9]+', array('year' => '[0-9]{4}',
'month' => '[1]?[0-9]', 'month' => '[01][0-9]',
'day' => '[123]?[0-9]')); 'day' => '[0123][0-9]',
'index' => '[1-9][0-9]*'));
return true; return true;
} }
} }