]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #4266 fixed limit bugs with pages plugin
authorcash <cash.costello@gmail.com>
Thu, 5 Jan 2012 02:43:35 +0000 (21:43 -0500)
committercash <cash.costello@gmail.com>
Thu, 5 Jan 2012 02:43:35 +0000 (21:43 -0500)
mod/pages/lib/pages.php
mod/pages/pages/pages/owner.php

index 0a6f3a6203b85072aef381e45f3e35a2ee69be60..5c5323d6fc22c0434c712f9db9342a0cefdcfd25 100644 (file)
@@ -78,6 +78,7 @@ function pages_register_navigation_tree($container) {
                'type' => 'object',
                'subtype' => 'page_top',
                'container_guid' => $container->getGUID(),
+               'limit' => 0,
        ));
 
        foreach ($top_pages as $page) {
@@ -96,6 +97,7 @@ function pages_register_navigation_tree($container) {
                                'subtype' => 'page',
                                'metadata_name' => 'parent_guid',
                                'metadata_value' => $parent->getGUID(),
+                               'limit' => 0,
                        ));
                        
                        foreach ($children as $child) {
index 2ff45ae0c78f84e7a78a9fd3c4fb21e105391310..b29332ee1600f33c82c3cb9426890800b147d7fa 100644 (file)
@@ -23,7 +23,6 @@ $content = elgg_list_entities(array(
        'types' => 'object',
        'subtypes' => 'page_top',
        'container_guid' => elgg_get_page_owner_guid(),
-       'limit' => $limit,
        'full_view' => false,
 ));
 if (!$content) {