From 7d64c6abdef6a3a421e79bbe8fc9a5cfa16b2e3d Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 9 Mar 2009 11:53:15 +0000 Subject: Admins can now change group profile picture. git-svn-id: https://code.elgg.org/elgg/trunk@3137 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/actions/edit.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mod/groups/actions') diff --git a/mod/groups/actions/edit.php b/mod/groups/actions/edit.php index d98ac6084..f32af9eb3 100644 --- a/mod/groups/actions/edit.php +++ b/mod/groups/actions/edit.php @@ -98,7 +98,7 @@ $filehandler->setFilename($prefix . ".jpg"); $filehandler->open("write"); $filehandler->write(get_uploaded_file('icon')); - $filehandler->close(); + $filehandler->close(); $thumbtiny = get_resized_image_from_existing_file($filehandler->getFilenameOnFilestore(),25,25, true); $thumbsmall = get_resized_image_from_existing_file($filehandler->getFilenameOnFilestore(),40,40, true); @@ -106,7 +106,8 @@ $thumblarge = get_resized_image_from_existing_file($filehandler->getFilenameOnFilestore(),200,200, false); if ($thumbtiny) { - $thumb = new ElggFile(); + $thumb = new ElggFile(); + $thumb->owner_guid = $group->owner_guid; $thumb->setMimeType('image/jpeg'); $thumb->setFilename($prefix."tiny.jpg"); -- cgit v1.2.3