]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/commands/local/class_LocalHomeCommand.php
Messages translated to english, a lot uneccessary debug messages removed
[shipsimu.git] / inc / classes / main / commands / local / class_LocalHomeCommand.php
index 24ef746cf96f7a79e7d79f4d9ec94b510526cd9b..033e1afc290ec5a738ccb8f6e34e81fd46886bdd 100644 (file)
@@ -90,6 +90,11 @@ class LocalHomeCommand extends BaseCommand implements Commandable {
                // Compile it...
                $templateInstance->compileTemplate();
 
+               // Set title
+               $title = ucfirst($requestInstance->getRequestElement($this->getConfigInstance()->readConfig("command_parameter")));
+               if (empty($title)) $title = "Home";
+               $templateInstance->assignVariable("title", $title);
+
                // ... 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.