diff options
author | Evan Prodromou <evan@status.net> | 2010-04-12 10:23:32 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-06-01 13:52:27 -0700 |
commit | b73c8ff441008a4fa09eef66871f2cfebc0569b5 (patch) | |
tree | a7fe556e4431a9768e6f339dafbe8b745ad5025c /plugins/Sitemap | |
parent | 144cdb559dc345016d087409c57554dd1fb03911 (diff) |
Move NOTICES_PER_MAP to SitemapPlugin
Diffstat (limited to 'plugins/Sitemap')
-rw-r--r-- | plugins/Sitemap/SitemapPlugin.php | 3 | ||||
-rw-r--r-- | plugins/Sitemap/noticesitemap.php | 6 |
2 files changed, 4 insertions, 5 deletions
diff --git a/plugins/Sitemap/SitemapPlugin.php b/plugins/Sitemap/SitemapPlugin.php index 5b2af4879..fa9c9a76d 100644 --- a/plugins/Sitemap/SitemapPlugin.php +++ b/plugins/Sitemap/SitemapPlugin.php @@ -47,7 +47,8 @@ if (!defined('STATUSNET')) { class SitemapPlugin extends Plugin { - const USERS_PER_MAP = 25000; + const USERS_PER_MAP = 25000; + const NOTICES_PER_MAP = 25000; /** * Load related modules when needed diff --git a/plugins/Sitemap/noticesitemap.php b/plugins/Sitemap/noticesitemap.php index 12a22dbb2..c8db24efe 100644 --- a/plugins/Sitemap/noticesitemap.php +++ b/plugins/Sitemap/noticesitemap.php @@ -43,8 +43,6 @@ if (!defined('STATUSNET')) { class NoticesitemapAction extends SitemapAction { - const NOTICES_PER_MAP = 25000; - var $notice = null; function prepare($args) @@ -63,8 +61,8 @@ class NoticesitemapAction extends SitemapAction $d += 0; $i += 0; - $offset = ($i-1) * self::NOTICES_PER_MAP; - $limit = self::NOTICES_PER_MAP; + $offset = ($i-1) * SitemapPlugin::NOTICES_PER_MAP; + $limit = SitemapPlugin::NOTICES_PER_MAP; $this->notice = new Notice(); |