diff options
author | Chad Parry <github@chad.parry.org> | 2011-04-27 20:29:06 -0600 |
---|---|---|
committer | Chad Parry <github@chad.parry.org> | 2011-04-27 20:29:06 -0600 |
commit | 7ff485fa48c392bbbb0370f67cb1bd6fcc00c2a4 (patch) | |
tree | 4cb4a853f7981f7ce54705bb7fb26cbbc17156a6 /modules/gallery/models | |
parent | 26585fed03236f0f70a75959e1d3002025f4e15e (diff) |
Move the extensions helpers out of the Kohana system directory and into their own Gallery Extensions class.
Diffstat (limited to 'modules/gallery/models')
-rw-r--r-- | modules/gallery/models/item.php | 3 |
1 files changed, 2 insertions, 1 deletions
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"); } |