diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-19 22:45:30 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-19 22:45:30 +0000 |
commit | 103bd8e8d22fed0cb2795ba28fe2e5acbfc4c744 (patch) | |
tree | 6232c8caaf646c990a51fe3883dd7d03a65fdcc3 /core/models | |
parent | c8dc84d50230e6eb5e9824687ae57319b9afe05c (diff) |
Add the original item height and width to the item table
Diffstat (limited to 'core/models')
-rw-r--r-- | core/models/item.php | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/core/models/item.php b/core/models/item.php index f03d1a91..298557e9 100644 --- a/core/models/item.php +++ b/core/models/item.php @@ -191,9 +191,6 @@ class Item_Model extends ORM_MPTT { } catch (Exception $e) { return null; } - } else if ($column == "height" || $column == "width") { - $dims = getimagesize($this->file_path()); - return $column == "width" ? $dims[0] : $dims[1]; } else { return parent::__get($column); } |