aboutsummaryrefslogtreecommitdiff
path: root/mod/pages/new.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-22 20:33:28 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-22 20:33:28 +0000
commit8423cda014c6aee9fb3a3f7ebe78bc0465e7355f (patch)
treee1baa523308221d33908e4ea4014191ade8d5d66 /mod/pages/new.php
parentcec8a4f34681d4c2a43e0c07de0a68bc22f1b558 (diff)
downloadelgg-8423cda014c6aee9fb3a3f7ebe78bc0465e7355f.tar.gz
elgg-8423cda014c6aee9fb3a3f7ebe78bc0465e7355f.tar.bz2
finished the first pass on the pages plugin for using the new HTML/CSS
git-svn-id: http://code.elgg.org/elgg/trunk@7904 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/pages/new.php')
-rw-r--r--mod/pages/new.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/pages/new.php b/mod/pages/new.php
index 31b0c7951..42a8e04e1 100644
--- a/mod/pages/new.php
+++ b/mod/pages/new.php
@@ -13,10 +13,10 @@ if (!$container) {
}
-$parent_page = null;
+$parent_guid = 0;
$page_owner = $container;
if (elgg_instanceof($container, 'object')) {
- $parent_page = $container;
+ $parent_guid = $container->getGUID();
$page_owner = $container->getContainerEntity();
}
@@ -25,7 +25,7 @@ elgg_set_page_owner_guid($page_owner->getGUID());
$title = elgg_echo('pages:add');
elgg_push_breadcrumb($title);
-$vars = pages_prepare_form_vars(null, $parent_page->getGUID());
+$vars = pages_prepare_form_vars(null, $parent_guid);
$content = elgg_view_form('pages/edit', array(), $vars);
$body = elgg_view_layout('content', array(