From c70f090465646a535684cab449cb16e7de664d27 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 2 Aug 2011 22:07:40 -0500 Subject: [PATCH] added package class. --- application/config/aliases.php | 1 + system/input.php | 7 ------ system/package.php | 39 ++++++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 7 deletions(-) create mode 100644 system/package.php diff --git a/application/config/aliases.php b/application/config/aliases.php index 18f0ba6f..0ba727ad 100644 --- a/application/config/aliases.php +++ b/application/config/aliases.php @@ -35,6 +35,7 @@ 'Inflector' => 'System\\Inflector', 'Input' => 'System\\Input', 'Lang' => 'System\\Lang', + 'Package' => 'System\\Package', 'URL' => 'System\\URL', 'Redirect' => 'System\\Redirect', 'Request' => 'System\\Request', diff --git a/system/input.php b/system/input.php index cabe1f96..193015cf 100644 --- a/system/input.php +++ b/system/input.php @@ -86,13 +86,6 @@ public static function old($key = null, $default = null) */ public static function file($key = null, $default = null) { - if (strpos($key, '.') !== false) - { - list($file, $key) = explode('.', $key); - - return Arr::get($_FILES[$file], $key, $default); - } - return Arr::get($_FILES, $key, $default); } diff --git a/system/package.php b/system/package.php new file mode 100644 index 00000000..b8058b09 --- /dev/null +++ b/system/package.php @@ -0,0 +1,39 @@ +