aboutsummaryrefslogtreecommitdiff
path: root/mod/pages/new.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-19 15:19:02 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-19 15:19:02 +0000
commitb5e2dbf292cddd56a8171b4c9cf1d9cf0fb45582 (patch)
treeaa7f916fba9fc61869f71492266d537f34e4d736 /mod/pages/new.php
parente603c947a5ae2869164b11fee827d4c595e4a3f8 (diff)
downloadelgg-b5e2dbf292cddd56a8171b4c9cf1d9cf0fb45582.tar.gz
elgg-b5e2dbf292cddd56a8171b4c9cf1d9cf0fb45582.tar.bz2
Fixes #3158 updated search and pages plugins for page handler scripts
git-svn-id: http://code.elgg.org/elgg/trunk@8769 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/pages/new.php')
-rw-r--r--mod/pages/new.php38
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);