From 103bd8e8d22fed0cb2795ba28fe2e5acbfc4c744 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Wed, 19 Nov 2008 22:45:30 +0000 Subject: Add the original item height and width to the item table --- core/models/item.php | 3 --- 1 file changed, 3 deletions(-) (limited to 'core/models') 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); } -- cgit v1.2.3