mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-17 15:29:55 -04:00
Move the extensions helpers out of the Kohana system directory and into their own Gallery Extensions class.
This commit is contained in:
@@ -51,7 +51,7 @@ class Uploader_Controller extends Controller {
|
||||
$file_validation = new Validation($_FILES);
|
||||
$file_validation->add_rules(
|
||||
"Filedata", "upload::valid", "upload::required",
|
||||
"upload::type[" . implode(",", upload::get_upload_extensions()) . "]");
|
||||
"upload::type[" . implode(",", extensions::get_upload_extensions()) . "]");
|
||||
|
||||
if ($form->validate() && $file_validation->validate()) {
|
||||
$temp_filename = upload::save("Filedata");
|
||||
|
||||
Reference in New Issue
Block a user