Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gnu-social
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
194
Issues
194
List
Boards
Labels
Milestones
Merge Requests
12
Merge Requests
12
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gnu.io
gnu-social
Commits
9970645a
Commit
9970645a
authored
Apr 12, 2010
by
Evan Prodromou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move NOTICES_PER_MAP to SitemapPlugin
parent
a4f0dfd3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
plugins/Sitemap/SitemapPlugin.php
plugins/Sitemap/SitemapPlugin.php
+2
-1
plugins/Sitemap/noticesitemap.php
plugins/Sitemap/noticesitemap.php
+2
-4
No files found.
plugins/Sitemap/SitemapPlugin.php
View file @
9970645a
...
...
@@ -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
...
...
plugins/Sitemap/noticesitemap.php
View file @
9970645a
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment