Commit 213374f6 authored by Nigel McNie's avatar Nigel McNie
Browse files

Made the pagination constant for blog posts per page exist in only the...

Made the pagination constant for blog posts per page exist in only the ArtefactTypeBlog class, so make sure we only use that now.
parent 23c0ad45
......@@ -33,7 +33,7 @@ safe_require('artefact', 'blog');
json_headers();
$id = param_integer('id');
$limit = param_integer('limit', ArtefactTypeBlogPost::pagination);
$limit = param_integer('limit', ArtefactTypeBlog::pagination);
$offset = param_integer('offset', 0);
list($count, $data) = ArtefactTypeBlogPost::get_posts($USER, $id, $limit, $offset);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment