]> git.mxchange.org Git - shipsimu.git/blobdiff - application/ship-simu/main/commands/web/government/class_WebGovernmentFailedStartupCommand.php
More renamed
[shipsimu.git] / application / ship-simu / main / commands / web / government / class_WebGovernmentFailedStartupCommand.php
index 31d56b3d8d16842b8d0ff3a846daaebf3652b15f..e7208505201385f654adfb636eb26004421a7602 100644 (file)
@@ -3,11 +3,11 @@
  * A command for a failed startup request. This may happen when the user
  * "knows" the correct URL but government refuses to pay.
  *
- * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
  * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 Ship-Simu Developer Team
  * @license            GNU GPL 3.0 or any newer version
- * @link               http://www.ship-simu.org
+ * @link               http://www.shipsimu.org
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -39,7 +39,7 @@ class WebGovernmentFailedStartupCommand extends BaseCommand implements Commandab
         * @param       $resolverInstance       An instance of a command resolver class
         * @return      $commandInstance        An instance a prepared command class
         */
-       public final static function createWebGovernmentFailedStartupCommand (CommandResolver $resolverInstance) {
+       public static final function createWebGovernmentFailedStartupCommand (CommandResolver $resolverInstance) {
                // Get new instance
                $commandInstance = new WebGovernmentFailedStartupCommand();
 
@@ -114,6 +114,12 @@ class WebGovernmentFailedStartupCommand extends BaseCommand implements Commandab
                // *every* command has a navigation system and that is want we don't want.
                $menuInstance = ObjectFactory::createObjectByConfiguredName('government_failed_area_menu_class', array($appInstance));
 
+               // Render the menu
+               $menuInstance->renderMenu();
+
+               // Transfer it to the template engine instance
+               $menuInstance->transferContentToTemplateEngine();
+
                // ... and all variables. This should be merged together in a pattern
                // to make things easier. A cache mechanism should be added between
                // these two calls to cache compiled templates.