From 622dca92b2a8eb399e7b2b44a682d7dd682dc68c Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Tue, 3 Nov 2009 12:46:10 +0000 Subject: fixed bug where admins couldn't redo thumbnails for other users --- lib/resize.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib') 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); -- cgit v1.2.3