aboutsummaryrefslogtreecommitdiff
path: root/lib/resize.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-11-03 12:46:10 +0000
committerCash Costello <cash.costello@gmail.com>2009-11-03 12:46:10 +0000
commit622dca92b2a8eb399e7b2b44a682d7dd682dc68c (patch)
tree1647b8bc06901b57444e140e4cb806a70e8c62a6 /lib/resize.php
parent44bb46bc39a0a6c47858c98837a1a39758edac08 (diff)
downloadelgg-622dca92b2a8eb399e7b2b44a682d7dd682dc68c.tar.gz
elgg-622dca92b2a8eb399e7b2b44a682d7dd682dc68c.tar.bz2
fixed bug where admins couldn't redo thumbnails for other users
Diffstat (limited to 'lib/resize.php')
-rw-r--r--lib/resize.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/resize.php b/lib/resize.php
index 9f4ecd4bc..7885a52df 100644
--- a/lib/resize.php
+++ b/lib/resize.php
@@ -28,6 +28,8 @@
$image_sizes = unserialize($image_sizes);
$thumb = new ElggFile();
+ $thumb->owner_guid = $file->owner_guid;
+ $thumb->container_guid = $file->container_guid;
// tiny thumbail
$thumb->setFilename($prefix."thumb".$filestorename);
@@ -221,7 +223,8 @@
$image_sizes = unserialize($image_sizes);
$thumb = new ElggFile();
-
+ $thumb->owner_guid = $file->owner_guid;
+ $thumb->container_guid = $file->container_guid;
// tiny thumbnail
$thumb->setFilename($prefix."thumb".$filestorename);
@@ -392,7 +395,8 @@
$image_sizes = unserialize($image_sizes);
$thumb = new ElggFile();
-
+ $thumb->owner_guid = $file->owner_guid;
+ $thumb->container_guid = $file->container_guid;
// tiny thumbnail
$thumb->setFilename($prefix."thumb".$filestorename);