Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Backport joomla/joomla-platform#1098

  • Loading branch information...
commit bef0e2841615e5b23e92459270983e4fd0a39b60 1 parent b89831b
@mbabker authored
Showing with 26 additions and 0 deletions.
  1. +26 −0 libraries/joomla/application/input/files.php
View
26 libraries/joomla/application/input/files.php
@@ -23,6 +23,32 @@ class JInputFiles extends JInput
protected $decodedData = array();
/**
+ * Constructor.
+ *
+ * @param array $source Ignored.
+ * @param array $options Array of configuration parameters (Optional)
+ *
+ * @since 12.1
+ */
+ public function __construct(array $source = null, array $options = array())
+ {
+ if (isset($options['filter']))
+ {
+ $this->filter = $options['filter'];
+ }
+ else
+ {
+ $this->filter = JFilterInput::getInstance();
+ }
+
+ // Set the data source.
+ $this->data = & $_FILES;
+
+ // Set the options for the class.
+ $this->options = $options;
+ }
+
+ /**
* Gets a value from the input data.
*
* @param string $name Name of the value to get.
Please sign in to comment.
Something went wrong with that request. Please try again.