Commit 7483a3bd authored by Robert Lyon's avatar Robert Lyon

Bug 1815979: Ignore limit for block in versioning / html export

Render the 'blog' blocktype with pagination in normal display but no
pagination in versioning display / or html export but rather list all
entries

behatnotneeded

Change-Id: If91c29b29240b31960fa15fca621fe2aea36f12c
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
(cherry picked from commit 0cfb63e6)
parent 160208e2
......@@ -66,6 +66,7 @@ class PluginBlocktypeBlog extends MaharaCoreBlocktype {
}
$limit = isset($configdata['count']) ? intval($configdata['count']) : 5;
$limit = ($exporter || $versioning) ? 0 : $limit;
$posts = ArtefactTypeBlogpost::get_posts($blog->get('id'), $limit, 0, $configdata);
$template = 'artefact:blog:viewposts.tpl';
if ($exporter || $versioning) {
......
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