X-Git-Url: https://git.mxchange.org/?p=shipsimu.git;a=blobdiff_plain;f=inc%2Fclasses%2Fmain%2Fcommands%2Fweb%2Fclass_WebHomeCommand.php;h=1deddf282779cd1d6ce362f2a8c524c57ebf9a97;hp=12661ee3da9042dd44578c7ba68835c7e1c15f42;hb=9327c11e14407cce78208de01b5cdd2de87e13a3;hpb=55b327a3f5f2fe1d244532e07be7444e94b2a768 diff --git a/inc/classes/main/commands/web/class_WebHomeCommand.php b/inc/classes/main/commands/web/class_WebHomeCommand.php index 12661ee..1deddf2 100644 --- a/inc/classes/main/commands/web/class_WebHomeCommand.php +++ b/inc/classes/main/commands/web/class_WebHomeCommand.php @@ -99,9 +99,7 @@ class WebHomeCommand extends BaseCommand implements Commandable { $templateInstance->loadCodeTemplate($masterTemplate); // Set title - $title = ucfirst($requestInstance->getRequestElement($this->getConfigInstance()->readConfig('command_parameter'))); - 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