diff options
Diffstat (limited to 'mod/pages/new.php')
-rw-r--r-- | mod/pages/new.php | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/mod/pages/new.php b/mod/pages/new.php deleted file mode 100644 index 42a8e04e1..000000000 --- a/mod/pages/new.php +++ /dev/null @@ -1,38 +0,0 @@ -<?php -/** - * Create a new page - * - * @package ElggPages - */ - -gatekeeper(); - -$container_guid = (int) get_input('guid'); -$container = get_entity($container_guid); -if (!$container) { - -} - -$parent_guid = 0; -$page_owner = $container; -if (elgg_instanceof($container, 'object')) { - $parent_guid = $container->getGUID(); - $page_owner = $container->getContainerEntity(); -} - -elgg_set_page_owner_guid($page_owner->getGUID()); - -$title = elgg_echo('pages:add'); -elgg_push_breadcrumb($title); - -$vars = pages_prepare_form_vars(null, $parent_guid); -$content = elgg_view_form('pages/edit', array(), $vars); - -$body = elgg_view_layout('content', array( - 'filter' => '', - 'buttons' => '', - 'content' => $content, - 'title' => $title, -)); - -echo elgg_view_page($title, $body); |