aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/actions/edit.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-09 11:53:15 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-09 11:53:15 +0000
commit7d64c6abdef6a3a421e79bbe8fc9a5cfa16b2e3d (patch)
tree50696923820fa08a33807a0d29673bd29e2d0ce6 /mod/groups/actions/edit.php
parenta5d0d1334d635affc6722a40b3098dbd4a34afa7 (diff)
downloadelgg-7d64c6abdef6a3a421e79bbe8fc9a5cfa16b2e3d.tar.gz
elgg-7d64c6abdef6a3a421e79bbe8fc9a5cfa16b2e3d.tar.bz2
Admins can now change group profile picture.
git-svn-id: https://code.elgg.org/elgg/trunk@3137 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/actions/edit.php')
-rw-r--r--mod/groups/actions/edit.php5
1 files changed, 3 insertions, 2 deletions
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");