]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
fixed bug where admins couldn't redo thumbnails for other users
authorCash Costello <cash.costello@gmail.com>
Tue, 3 Nov 2009 12:46:10 +0000 (12:46 +0000)
committerCash Costello <cash.costello@gmail.com>
Tue, 3 Nov 2009 12:46:10 +0000 (12:46 +0000)
lib/resize.php

index 9f4ecd4bc1a9112bf698d73ea3825092520f215d..7885a52df06c9c5d34f01309c19b865c91584ca2 100644 (file)
@@ -28,6 +28,8 @@
                $image_sizes = unserialize($image_sizes);\r
 \r
                $thumb = new ElggFile();\r
+               $thumb->owner_guid = $file->owner_guid;\r
+               $thumb->container_guid = $file->container_guid;\r
 \r
                // tiny thumbail\r
                $thumb->setFilename($prefix."thumb".$filestorename);\r
                $image_sizes = unserialize($image_sizes);\r
 \r
                $thumb = new ElggFile();\r
-\r
+               $thumb->owner_guid = $file->owner_guid;\r
+               $thumb->container_guid = $file->container_guid;\r
 \r
                // tiny thumbnail\r
                $thumb->setFilename($prefix."thumb".$filestorename);\r
                $image_sizes = unserialize($image_sizes);\r
 \r
                $thumb = new ElggFile();\r
-\r
+               $thumb->owner_guid = $file->owner_guid;\r
+               $thumb->container_guid = $file->container_guid;\r
 \r
                // tiny thumbnail\r
                $thumb->setFilename($prefix."thumb".$filestorename);\r