summaryrefslogtreecommitdiff
path: root/modules/gallery/models
diff options
context:
space:
mode:
authorRomain LE DISEZ <romain.git@ledisez.net>2010-07-04 21:53:57 +0200
committerBharat Mediratta <bharat@menalto.com>2010-07-10 08:09:04 -0700
commit39962eaddc17f27eb1baa694ac588138439621d4 (patch)
treee5bd4465b46cd12f0afddc4934755043b7716bb7 /modules/gallery/models
parent9d66783f47636153bf3661d1d89e694dd5188c36 (diff)
Accept extension .m4v as video/mp4
Diffstat (limited to 'modules/gallery/models')
-rw-r--r--modules/gallery/models/item.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/models/item.php b/modules/gallery/models/item.php
index 4d05e4da..eb200fa5 100644
--- a/modules/gallery/models/item.php
+++ b/modules/gallery/models/item.php
@@ -364,7 +364,7 @@ class Item_Model extends ORM_MPTT {
$this->name .= "." . $pi["extension"];
}
- $this->mime_type = strtolower($pi["extension"]) == "mp4" ? "video/mp4" : "video/x-flv";
+ $this->mime_type = in_array(strtolower($pi["extension"]), array("mp4", "m4v")) ? "video/mp4" : "video/x-flv";
}
}