]> git.mxchange.org Git - shipsimu.git/commitdiff
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 00973d7769efce22fb6f8e0c63ad1dc25069291c..ca1565d87d8b6c9a083a75ef1807b098ce14f107 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 300a6e801d816bcb570fd0f1ef1facf29f0b1cb6..d296235ea868d5a58b5a1178038abb4c20fcc422 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');
        }