Skip to content
This repository has been archived by the owner on Aug 15, 2019. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(lists): always enable pagination if hypeLists is enabled
Refs #71
  • Loading branch information
hypeJunction committed Feb 9, 2016
1 parent 02cca79 commit 76704b1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions views/default/lists/wall.php
Expand Up @@ -40,7 +40,13 @@
'list_class' => implode(' ', $list_class),
'item_class' => implode(' ', $item_class),
'no_results' => $no_results,
'pagination' => elgg_is_active_plugin('hypeLists') || !elgg_in_context('widgets'),
'pagination_type' => 'infinite',
'base_url' => $base_url,
'list_id' => "wall-$guid",
'auto_refresh' => 30,
);

$getter_options = array(
'types' => 'object',
'subtypes' => \hypeJunction\Wall\get_wall_subtypes(),
Expand All @@ -50,9 +56,6 @@
"({$guid} = rv.target_guid
OR EXISTS (SELECT 1 FROM {$dbprefix}entity_relationships WHERE guid_one = {$guid} AND relationship = 'tagged_in' AND guid_two = rv.object_guid))",
),
'base_url' => $base_url,
'list_id' => "wall-$guid",
'auto_refresh' => 30,
);

$options = array_merge($list_options, $options, $getter_options);
Expand Down

0 comments on commit 76704b1

Please sign in to comment.