Missing configuration entry added
authorRoland Häder <roland@mxchange.org>
Sun, 21 Dec 2008 04:56:04 +0000 (04:56 +0000)
committerRoland Häder <roland@mxchange.org>
Sun, 21 Dec 2008 04:56:04 +0000 (04:56 +0000)
application/ship-simu/config.php
application/ship-simu/main/commands/web/class_WebShipsimuRefillCommand.php

index 00973d7..ca1565d 100644 (file)
@@ -38,7 +38,7 @@ $cfg->setConfigEntry('default_image_command', "build");
 $cfg->setConfigEntry('page_with_news', "home");
 
 // CFG: FORM-ACTION
-$cfg->setConfigEntry('form_action', "index.php?app={?app_short_name?}&amp;page=do_form");
+$cfg->setConfigEntry('form_action', "index.php?app={?app_short_name?}&page=do_form");
 
 // CFG: FORM-METHOD
 $cfg->setConfigEntry('form_method', "post");
@@ -130,6 +130,9 @@ $cfg->setConfigEntry('login_government_startup_failed_url', "index.php?app={?app
 // CFG: LOGIN-GOVERNMENT-TRAINING-FAILED-URL
 $cfg->setConfigEntry('login_government_training_failed_url', "index.php?app={?app_short_name?}&page=government_failed&failed=training");
 
+// CFG: REFILL-PAGE-CURRENCY-DONE-URL
+$cfg->setConfigEntry('refill_page_done_url', "index.php?app={?app_short_name?}&page=login_area&action=refill_done&done={?refill_done?}&amount={?amount?}");
+
 // CFG: LOGIN-DEFAULT-ACTION
 $cfg->setConfigEntry('login_default_action', "welcome");
 
index 300a6e8..d296235 100644 (file)
@@ -61,6 +61,13 @@ class WebShipsimuRefillCommand extends BaseCommand implements Commandable {
         * @return      void
         */
        public function execute (Requestable $requestInstance, Responseable $responseInstance) {
+               // Get template instance
+               $templateInstance = $responseInstance->getTemplateInstance();
+
+               // Set amount and type as variables
+               $templateInstance->assignVariable('refill_done', $requestInstance->getRequestElement('type'));
+               $templateInstance->assignVariable('amount'     , $requestInstance->getRequestElement('amount'));
+
                // This method does currently redirect if all goes right
                $responseInstance->redirectToConfiguredUrl('refill_page_done');
        }