From 81c1ee6e7d08ece79919fe7fd438f07f89d00eed Mon Sep 17 00:00:00 2001 From: cash Date: Wed, 20 Oct 2010 11:15:00 +0000 Subject: Refs #2496 - manually merged [6975] from 1.7 branch git-svn-id: http://code.elgg.org/elgg/trunk@7102 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/pages/actions/pages/editwelcome.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'mod/pages/actions/pages') diff --git a/mod/pages/actions/pages/editwelcome.php b/mod/pages/actions/pages/editwelcome.php index dd832cb28..113eb956a 100644 --- a/mod/pages/actions/pages/editwelcome.php +++ b/mod/pages/actions/pages/editwelcome.php @@ -16,7 +16,7 @@ gatekeeper(); // Get group fields $message = get_input("pages_welcome"); -$owner_guid = get_input("owner_guid"); +$container_guid = get_input("owner_guid"); $object_guid = get_input("object_guid"); $access_id = (int) get_input("access_id"); @@ -37,7 +37,7 @@ if($object_guid){ } } else { //it is a new welcome object - if ($owner_guid) { + if ($container_guid) { $welcome = new ElggObject(); // Tell the system it's a pages welcome message $welcome->subtype = "pages_welcome"; @@ -46,7 +46,7 @@ if($object_guid){ $welcome->access_id = $access_id; // Set the owner - $welcome->owner_guid = $owner_guid; + $welcome->container_guid = $container_guid; // save if (!$welcome->save()){ @@ -59,5 +59,4 @@ if($object_guid){ } } -// Forward to the main blog page -forward("pg/pages/owned/" . get_user($owner_guid)->username); \ No newline at end of file +forward("pg/pages/owned/" . get_entity($container_guid)->username); \ No newline at end of file -- cgit v1.2.3