From: Roland Häder Date: Fri, 31 Jul 2009 17:32:45 +0000 (+0000) Subject: Missing 2nd argument added X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1655bfb47ca0dd174e374d70d1aaad4293346379;p=shipsimu.git Missing 2nd argument added --- diff --git a/application/selector/class_ApplicationHelper.php b/application/selector/class_ApplicationHelper.php index b089944..1617173 100644 --- a/application/selector/class_ApplicationHelper.php +++ b/application/selector/class_ApplicationHelper.php @@ -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 diff --git a/application/ship-simu/class_ApplicationHelper.php b/application/ship-simu/class_ApplicationHelper.php index f459a64..e0a7728 100644 --- a/application/ship-simu/class_ApplicationHelper.php +++ b/application/ship-simu/class_ApplicationHelper.php @@ -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