diff options
| author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-20 13:31:46 +0000 | 
|---|---|---|
| committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-20 13:31:46 +0000 | 
| commit | 944b8f89b8dd87bf444503d0815aa69ed19f599d (patch) | |
| tree | 6786d1a4cf55f27ca6fa46364da649932b750e7e /mod | |
| parent | ffd932df92f857a9607b119a0953ee353c422119 (diff) | |
| download | elgg-944b8f89b8dd87bf444503d0815aa69ed19f599d.tar.gz elgg-944b8f89b8dd87bf444503d0815aa69ed19f599d.tar.bz2 | |
Fixes #2668 adding getOwnerGUID()
git-svn-id: http://code.elgg.org/elgg/trunk@7378 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
| -rw-r--r-- | mod/groups/actions/forums/edittopic.php | 2 | ||||
| -rw-r--r-- | mod/groups/actions/leave.php | 2 | ||||
| -rw-r--r-- | mod/thewire/actions/delete.php | 2 | 
3 files changed, 3 insertions, 3 deletions
| diff --git a/mod/groups/actions/forums/edittopic.php b/mod/groups/actions/forums/edittopic.php index 247c06c8c..b032e37d7 100644 --- a/mod/groups/actions/forums/edittopic.php +++ b/mod/groups/actions/forums/edittopic.php @@ -26,7 +26,7 @@ $tagarray = string_to_tag_array($tags);  // Make sure we actually have permission to edit  $topic = get_entity($topic_guid);  if ($topic){ -	$user = $topic->getOwner();  +	$user = $topic->getOwnerGUID();  	if ($topic->getSubtype() == "groupforumtopic") {  		// Convert string of tags into a preformatted array diff --git a/mod/groups/actions/leave.php b/mod/groups/actions/leave.php index 5ed2bf648..78431961a 100644 --- a/mod/groups/actions/leave.php +++ b/mod/groups/actions/leave.php @@ -24,7 +24,7 @@  	if (($user instanceof ElggUser) && ($group instanceof ElggGroup))  	{ -		if ($group->getOwner() != get_loggedin_userid()) { +		if ($group->getOwnerGUID() != get_loggedin_userid()) {  			if ($group->leave($user))  				system_message(elgg_echo("groups:left"));  			else diff --git a/mod/thewire/actions/delete.php b/mod/thewire/actions/delete.php index 98b5114cc..9b6bf4a99 100644 --- a/mod/thewire/actions/delete.php +++ b/mod/thewire/actions/delete.php @@ -17,7 +17,7 @@  		if ($thewire->getSubtype() == "thewire" && $thewire->canEdit()) {  		// Get owning user -				$owner = get_entity($thewire->getOwner()); +				$owner = $thewire->getOwnerEntity();  		// Delete it!  				$rowsaffected = $thewire->delete();  				if ($rowsaffected > 0) { | 
