summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers/uploader.php
diff options
context:
space:
mode:
authorChad Parry <github@chad.parry.org>2011-04-21 02:06:53 -0600
committerChad Parry <github@chad.parry.org>2011-04-21 02:11:04 -0600
commit31ba081b793141ca36866a6dd349cd2eac5af68e (patch)
tree9a538198a7353b2c6c356736ebd74276349be500 /modules/gallery/controllers/uploader.php
parent14eadea2c26e2f284b43bfe73e920dcd07837c1b (diff)
Add an event that will collect all valid filename extensions.
Diffstat (limited to 'modules/gallery/controllers/uploader.php')
-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 6b1455e4..12180893 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[gif,jpg,jpeg,png,flv,mp4,m4v]");
+ "upload::type[" . implode(",", upload::get_upload_extensions()) . "]");
if ($form->validate() && $file_validation->validate()) {
$temp_filename = upload::save("Filedata");