summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--framework/Web/THttpRequest.php18
1 files changed, 6 insertions, 12 deletions
diff --git a/framework/Web/THttpRequest.php b/framework/Web/THttpRequest.php
index 0c21a020..938e56a3 100644
--- a/framework/Web/THttpRequest.php
+++ b/framework/Web/THttpRequest.php
@@ -302,33 +302,27 @@ class THttpRequest extends TModule
}
/**
- * @return TMap list of uploaded files.
+ * @return array list of uploaded files.
*/
public function getUploadedFiles()
{
- if($this->_files===null)
- $this->_files=new TMap($_FILES);
- return $this->_files;
+ return $_FILES;
}
/**
- * @return TMap list of server variables.
+ * @return array list of server variables.
*/
public function getServerVariables()
{
- if($this->_server===null)
- $this->_server=new TMap($_SERVER);
- return $this->_server;
+ return $_SERVER;
}
/**
- * @return TMap list of environment variables.
+ * @return array list of environment variables.
*/
public function getEnvironmentVariables()
{
- if($this->_env===null)
- $this->_env=new TMap($_ENV);
- return $this->_env;
+ return $_ENV;
}
/**