]> git.mxchange.org Git - admin.git/blobdiff - application/admin/class_ApplicationHelper.php
Updated to latest core revision, a lot debug constants removed
[admin.git] / application / admin / class_ApplicationHelper.php
index e1af8620c08f25dd4b28a221c31183e4d66d18b4..53d3fc3e6e8947782c21ffd1374f109cb7c38650 100644 (file)
@@ -175,6 +175,9 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication
                // Create a new request object
                $requestInstance = ObjectFactory::createObjectByName('HttpRequest');
 
+               // Remember request instance here
+               $this->setRequestInstance($requestInstance);
+
                // Default response is HTTP (HTML page) and type is "Web"
                $response = "http";
                $responseType = "web";
@@ -190,8 +193,7 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication
                $responseClass = sprintf("%sResponse", $this->convertToClassName($response));
                $responseInstance = ObjectFactory::createObjectByName($responseClass, array($this));
 
-               // Remember both in this application
-               $this->setRequestInstance($requestInstance);
+               // Remember response instance here
                $this->setResponseInstance($responseInstance);
 
                // Get the parameter from the request