summaryrefslogtreecommitdiff
path: root/system/helpers
diff options
context:
space:
mode:
authorChad Parry <github@chad.parry.org>2011-04-27 20:29:06 -0600
committerChad Parry <github@chad.parry.org>2011-04-27 20:29:06 -0600
commit7ff485fa48c392bbbb0370f67cb1bd6fcc00c2a4 (patch)
tree4cb4a853f7981f7ce54705bb7fb26cbbc17156a6 /system/helpers
parent26585fed03236f0f70a75959e1d3002025f4e15e (diff)
Move the extensions helpers out of the Kohana system directory and into their own Gallery Extensions class.
Diffstat (limited to 'system/helpers')
-rw-r--r--system/helpers/upload.php20
1 files changed, 0 insertions, 20 deletions
diff --git a/system/helpers/upload.php b/system/helpers/upload.php
index cfd92dd1..62de674f 100644
--- a/system/helpers/upload.php
+++ b/system/helpers/upload.php
@@ -154,24 +154,4 @@ class upload_Core {
return ($file['size'] <= $size);
}
-
- static function get_upload_extensions() {
- // Create a default list of allowed extensions and then let modules modify it.
- $extensions_wrapper = new stdClass();
- $extensions_wrapper->extensions = array("gif", "jpg", "jpeg", "png");
- if (movie::find_ffmpeg()) {
- array_push($extensions_wrapper->extensions, "flv", "mp4", "m4v");
- }
- module::event("upload_extensions", $extensions_wrapper);
- return $extensions_wrapper->extensions;
- }
-
- static function get_upload_filters() {
- $filters = array();
- foreach (upload::get_upload_extensions() as $extension) {
- array_push($filters, "*." . $extension, "*." . strtoupper($extension));
- }
- return $filters;
- }
-
} // End upload \ No newline at end of file