User login (non-guest) basicly finished, news stubs added, registration and final...
[shipsimu.git] / inc / classes / main / commands / web / class_WebHomeCommand.php
index 3cc3592cf40c022d46a85f709c1c0dbad2ef774a..1deddf282779cd1d6ce362f2a8c524c57ebf9a97 100644 (file)
@@ -99,9 +99,7 @@ class WebHomeCommand extends BaseCommand implements Commandable {
                $templateInstance->loadCodeTemplate($masterTemplate);
 
                // Set title
-               $title = ucfirst($requestInstance->getRequestElement("page"));
-               if (empty($title)) $title = "Home";
-               $templateInstance->assignVariable('title', $title);
+               $templateInstance->assignVariable('title', $this->getLanguageInstance()->getMessage('page_home_title'));
 
                // ... and all variables. This should be merged together in a pattern
                // to make things easier. A cache mechanism should be added between