summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/Sitemap/SitemapPlugin.php3
-rw-r--r--plugins/Sitemap/usersitemap.php6
2 files changed, 5 insertions, 4 deletions
diff --git a/plugins/Sitemap/SitemapPlugin.php b/plugins/Sitemap/SitemapPlugin.php
index bb404cd25..40263aaee 100644
--- a/plugins/Sitemap/SitemapPlugin.php
+++ b/plugins/Sitemap/SitemapPlugin.php
@@ -47,6 +47,8 @@ if (!defined('STATUSNET')) {
class SitemapPlugin extends Plugin
{
+ const USERS_PER_MAP = 25000;
+
/**
* Load related modules when needed
*
@@ -85,6 +87,7 @@ class SitemapPlugin extends Plugin
{
$m->connect('sitemapindex.xml',
array('action' => 'sitemapindex'));
+
$m->connect('/sitemaps/notice/:year/:month/:day/:index.xml',
array('action' => 'noticesitemap'),
array('year' => '[0-9]{4}',
diff --git a/plugins/Sitemap/usersitemap.php b/plugins/Sitemap/usersitemap.php
index 582a13b66..b7cc939a9 100644
--- a/plugins/Sitemap/usersitemap.php
+++ b/plugins/Sitemap/usersitemap.php
@@ -43,8 +43,6 @@ if (!defined('STATUSNET')) {
class UsersitemapAction extends SitemapAction
{
- const USERS_PER_MAP = 25000;
-
var $user = null;
function prepare($args)
@@ -55,8 +53,8 @@ class UsersitemapAction extends SitemapAction
$i += 0;
- $offset = ($i-1) * self::USERS_PER_MAP;
- $limit = self::USERS_PER_MAP;
+ $offset = ($i-1) * SitemapPlugin::USERS_PER_MAP;
+ $limit = SitemapPlugin::USERS_PER_MAP;
$this->user = new User();