Move the extensions helpers out of the Kohana system directory and into their own Gallery Extensions class.

This commit is contained in:
Chad Parry
2011-04-27 20:29:06 -06:00
parent 26585fed03
commit 7ff485fa48
5 changed files with 44 additions and 24 deletions
+2 -1
View File
@@ -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");
}