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

View File

@@ -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");