From 7ff485fa48c392bbbb0370f67cb1bd6fcc00c2a4 Mon Sep 17 00:00:00 2001 From: Chad Parry Date: Wed, 27 Apr 2011 20:29:06 -0600 Subject: Move the extensions helpers out of the Kohana system directory and into their own Gallery Extensions class. --- modules/gallery/models/item.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/gallery/models') diff --git a/modules/gallery/models/item.php b/modules/gallery/models/item.php index ba8e7cde..dcdcfd0d 100644 --- a/modules/gallery/models/item.php +++ b/modules/gallery/models/item.php @@ -803,7 +803,8 @@ class Item_Model_Core extends ORM_MPTT { if (($this->is_movie() || $this->is_photo()) && !preg_match("/^(" . - implode("|", array_map("preg_quote", upload::get_upload_extensions())) . + implode("|", array_map("preg_quote", + extensions::get_upload_extensions())) . ")\$/i", $ext)) { $v->add_error("name", "illegal_data_file_extension"); } -- cgit v1.2.3