diff options
Diffstat (limited to 'mod/pages/new.php')
-rw-r--r-- | mod/pages/new.php | 6 |
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( |