From c7b2090f0cd68acf7e952a71ba30aa4c9edb6a45 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Wed, 19 Nov 2008 03:29:53 +0000 Subject: add the mime type column on the item table --- core/models/item.php | 5 ----- 1 file changed, 5 deletions(-) (limited to 'core/models') diff --git a/core/models/item.php b/core/models/item.php index 950be499..485975cb 100644 --- a/core/models/item.php +++ b/core/models/item.php @@ -175,11 +175,6 @@ class Item_Model extends ORM_MPTT { $real_column = substr($column, 0, strlen($column) - 5); return "id}-{$real_column}\">" . "{$this->$real_column}"; - } else if ($column == "mime_type") { - if ($this->is_album() || ($mime_type = file::mime($this->file_path())) === false) { - $mime_type = "application/unknown"; - } - return $mime_type; } else if ($column == "owner") { // This relationship depends on an outside module, which may not be present so handle // failures gracefully. -- cgit v1.2.3