Updated ApplicationHelper class to latest API
authorRoland Häder <roland@mxchange.org>
Thu, 20 Dec 2012 21:18:59 +0000 (21:18 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 20 Dec 2012 21:18:59 +0000 (21:18 +0000)
application/install/class_ApplicationHelper.php

index 8643faa61ac9bfc72a90624b561a9ce9c29d4128..eead48f5be88dca93746da5bca8de8d581666b6f 100644 (file)
@@ -43,17 +43,17 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication
        /**
         * The version number of this application
         */
-       private $appVersion = "";
+       private $appVersion = '';
 
        /**
         * The human-readable name for this application
         */
-       private $appName = "";
+       private $appName = '';
 
        /**
         * The short uni*-like name for this application
         */
-       private $shortName = "";
+       private $shortName = '';
 
        /**
         * An instance of a controller
@@ -160,7 +160,7 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication
         */
        public function buildMasterTemplateName () {
                // Get short name and add suffix
-               $masterTemplateName = str_replace("-", "", $this->getAppShortName()) . "_main";
+               $masterTemplateName = str_replace('-', '', $this->getAppShortName()) . '_main';
 
                // Return it
                return $masterTemplateName;
@@ -182,8 +182,8 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication
                $this->setRequestInstance($requestInstance);
 
                // Default response is HTTP (HTML page) and type is "Web"
-               $response = 'http';
-               $responseType = 'web';
+               $response = $this->getResponseTypeFromSystem();
+               $responseType = $this->getResponseTypeFromSystem();
 
                // Do we have another response?
                if ($requestInstance->isRequestElementSet('request')) {