diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index 7b8ed5c8e..3a97d83ff 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -89,7 +89,7 @@ class SeedDMS_Theme_Style extends SeedDMS_View_Common { if($this->params['session'] && ($slang = $this->params['session']->getLanguage())) { echo str_replace('_', '-', $slang); } else { - echo str_replace('_', '-', $settings->_language); + echo str_replace('_', '-', $this->params['settings']->_language); } echo "\">\n\n"; echo "\n"; diff --git a/views/bootstrap4/class.Bootstrap4.php b/views/bootstrap4/class.Bootstrap4.php index d834d2fbc..14fcb1a2e 100644 --- a/views/bootstrap4/class.Bootstrap4.php +++ b/views/bootstrap4/class.Bootstrap4.php @@ -91,7 +91,7 @@ class SeedDMS_Theme_Style extends SeedDMS_View_Common { if($this->params['session'] && ($slang = $this->params['session']->getLanguage())) { echo str_replace('_', '-', $slang); } else { - echo str_replace('_', '-', $settings->_language); + echo str_replace('_', '-', $this->params['settings']->_language); } echo "\">\n\n"; echo "\n";