diff options
Diffstat (limited to 'mod/pages/pagesTree.php')
-rw-r--r-- | mod/pages/pagesTree.php | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/mod/pages/pagesTree.php b/mod/pages/pagesTree.php index 19a8977cb..ed8457a7e 100644 --- a/mod/pages/pagesTree.php +++ b/mod/pages/pagesTree.php @@ -1,14 +1,21 @@ <?php - require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php"); - - if (is_callable('group_gatekeeper')) group_gatekeeper(); - - $page = (int) get_input('root',get_input('source')); - - if (!$page = get_entity($page)) { - exit; - } - - // View tree - echo pages_get_entity_sidebar($page, $fulltree); -?> +/** + * Show the pages tree + * + * @package ElggPages + */ + +require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php"); + +if (is_callable('group_gatekeeper')) { + group_gatekeeper(); +} + +$page = (int) get_input('root',get_input('source')); + +if (!$page = get_entity($page)) { + exit; +} + +// View tree +echo pages_get_entity_sidebar($page, $fulltree); |