fix setting html language

This commit is contained in:
Uwe Steinmann 2023-04-17 22:10:18 +02:00
parent 5a7f8655d8
commit ec7b24c044
2 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ class SeedDMS_Theme_Style extends SeedDMS_View_Common {
if($this->params['session'] && ($slang = $this->params['session']->getLanguage())) { if($this->params['session'] && ($slang = $this->params['session']->getLanguage())) {
echo str_replace('_', '-', $slang); echo str_replace('_', '-', $slang);
} else { } else {
echo str_replace('_', '-', $settings->_language); echo str_replace('_', '-', $this->params['settings']->_language);
} }
echo "\">\n<head>\n"; echo "\">\n<head>\n";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n"; echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n";

View File

@ -91,7 +91,7 @@ class SeedDMS_Theme_Style extends SeedDMS_View_Common {
if($this->params['session'] && ($slang = $this->params['session']->getLanguage())) { if($this->params['session'] && ($slang = $this->params['session']->getLanguage())) {
echo str_replace('_', '-', $slang); echo str_replace('_', '-', $slang);
} else { } else {
echo str_replace('_', '-', $settings->_language); echo str_replace('_', '-', $this->params['settings']->_language);
} }
echo "\">\n<head>\n"; echo "\">\n<head>\n";
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n"; echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n";