forked from GNUsocial/gnu-social
Move NOTICES_PER_MAP to SitemapPlugin
This commit is contained in:
parent
a4f0dfd3a1
commit
9970645aa2
@ -48,6 +48,7 @@ if (!defined('STATUSNET')) {
|
|||||||
class SitemapPlugin extends Plugin
|
class SitemapPlugin extends Plugin
|
||||||
{
|
{
|
||||||
const USERS_PER_MAP = 25000;
|
const USERS_PER_MAP = 25000;
|
||||||
|
const NOTICES_PER_MAP = 25000;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load related modules when needed
|
* Load related modules when needed
|
||||||
|
@ -43,8 +43,6 @@ if (!defined('STATUSNET')) {
|
|||||||
|
|
||||||
class NoticesitemapAction extends SitemapAction
|
class NoticesitemapAction extends SitemapAction
|
||||||
{
|
{
|
||||||
const NOTICES_PER_MAP = 25000;
|
|
||||||
|
|
||||||
var $notice = null;
|
var $notice = null;
|
||||||
|
|
||||||
function prepare($args)
|
function prepare($args)
|
||||||
@ -63,8 +61,8 @@ class NoticesitemapAction extends SitemapAction
|
|||||||
$d += 0;
|
$d += 0;
|
||||||
$i += 0;
|
$i += 0;
|
||||||
|
|
||||||
$offset = ($i-1) * self::NOTICES_PER_MAP;
|
$offset = ($i-1) * SitemapPlugin::NOTICES_PER_MAP;
|
||||||
$limit = self::NOTICES_PER_MAP;
|
$limit = SitemapPlugin::NOTICES_PER_MAP;
|
||||||
|
|
||||||
$this->notice = new Notice();
|
$this->notice = new Notice();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user