mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-29 19:20:52 -04:00
Move the extensions helpers out of the Kohana system directory and into their own Gallery Extensions class.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user