summaryrefslogtreecommitdiff
path: root/core/helpers/photo.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2008-11-19 22:45:30 +0000
committerTim Almdal <tnalmdal@shaw.ca>2008-11-19 22:45:30 +0000
commit103bd8e8d22fed0cb2795ba28fe2e5acbfc4c744 (patch)
tree6232c8caaf646c990a51fe3883dd7d03a65fdcc3 /core/helpers/photo.php
parentc8dc84d50230e6eb5e9824687ae57319b9afe05c (diff)
Add the original item height and width to the item table
Diffstat (limited to 'core/helpers/photo.php')
-rw-r--r--core/helpers/photo.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/helpers/photo.php b/core/helpers/photo.php
index cd02696d..958e432a 100644
--- a/core/helpers/photo.php
+++ b/core/helpers/photo.php
@@ -56,6 +56,8 @@ class Photo_Core {
$photo->description = $description;
$photo->name = $name;
$photo->owner_id = $owner_id;
+ $photo->width = $image_info[0];
+ $photo->height = $image_info[1];
$photo->mime_type = empty($image_info['mime']) ? "application/unknown" : $image_info['mime'];
// Randomize the name if there's a conflict