]> git.mxchange.org Git - shipsimu.git/commitdiff
Missing 2nd argument added
authorRoland Häder <roland@mxchange.org>
Fri, 31 Jul 2009 17:32:45 +0000 (17:32 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 31 Jul 2009 17:32:45 +0000 (17:32 +0000)
application/selector/class_ApplicationHelper.php
application/ship-simu/class_ApplicationHelper.php

index b089944e4d7bf641219a12cf54c64800313fa246..1617173e0457e1b90a8dd83ec8008a28add5851c 100644 (file)
@@ -203,7 +203,7 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication
                        $commandName = $responseInstance->getDefaultCommand();
 
                        // Set it in request
-                       $requestInstance->setRequestElement('page');
+                       $requestInstance->setRequestElement('page', $commandName);
                } // END - if
 
                // Get a resolver
index f459a64580f07b87f0511978696bd9f57a99856e..e0a772878549254dca5cc8eb40eb239ed165184c 100644 (file)
@@ -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;
@@ -178,9 +178,9 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication
                // Remember request instance here
                $this->setRequestInstance($requestInstance);
 
-               // Default response is HTTP (HTML page) and type is "Web"
-               $response = "http";
-               $responseType = "web";
+               // Default response is HTTP (HTML page) and type is 'Web'
+               $response = 'http';
+               $responseType = 'web';
 
                // Do we have another response?
                if ($requestInstance->isRequestElementSet('request')) {
@@ -205,7 +205,7 @@ class ApplicationHelper extends BaseApplication implements ManageableApplication
                        $commandName = $responseInstance->getDefaultCommand();
 
                        // Set it in request
-                       $requestInstance->setRequestElement('page');
+                       $requestInstance->setRequestElement('page', $commandName);
                } // END - if
 
                // Get a resolver