summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers
diff options
context:
space:
mode:
authorChad Parry <github@chad.parry.org>2011-04-30 16:10:06 -0600
committerChad Parry <github@chad.parry.org>2011-04-30 16:10:06 -0600
commita8ca9dcf9edd54633c0c78b3af76aa974d38fc64 (patch)
tree4bc5dda0ecd3a3c6cf69ceb6a1e6caa66bf45f65 /modules/gallery/controllers
parent7e61a01a96f5eab7212dba754ac64fdfb4d9e8ab (diff)
Change the name of the extensions helper to legal_file.
Diffstat (limited to 'modules/gallery/controllers')
-rw-r--r--modules/gallery/controllers/uploader.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/controllers/uploader.php b/modules/gallery/controllers/uploader.php
index 5f3e9ca4..9c2bf7d7 100644
--- a/modules/gallery/controllers/uploader.php
+++ b/modules/gallery/controllers/uploader.php
@@ -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(",", extensions::get_upload_extensions()) . "]");
+ "upload::type[" . implode(",", legal_file::get_extensions()) . "]");
if ($form->validate() && $file_validation->validate()) {
$temp_filename = upload::save("Filedata");