aboutsummaryrefslogtreecommitdiff
path: root/mod/pages/pagesTree.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-07-15 17:59:57 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-07-15 17:59:57 +0000
commitbcfbbf1b7cf2a0c96af1dfe55c919c09eceac916 (patch)
treee22653836d685eedbe81df5f4b1c118e6324c86d /mod/pages/pagesTree.php
parentff5846ea6cb4e5edc84c99c6eda7b37dccce8bf5 (diff)
downloadelgg-bcfbbf1b7cf2a0c96af1dfe55c919c09eceac916.tar.gz
elgg-bcfbbf1b7cf2a0c96af1dfe55c919c09eceac916.tar.bz2
First pass at standardizing pages.
git-svn-id: http://code.elgg.org/elgg/trunk@6716 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/pages/pagesTree.php')
-rw-r--r--mod/pages/pagesTree.php33
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);