diff options
Diffstat (limited to 'usr/local/www/index.php')
-rw-r--r-- | usr/local/www/index.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php index 4de2852..ba39623 100644 --- a/usr/local/www/index.php +++ b/usr/local/www/index.php @@ -170,13 +170,15 @@ if (file_exists('/conf/needs_package_sync')) { ## If it is the first time webConfigurator has been ## accessed since initial install show this stuff. if (file_exists('/conf/trigger_initial_wizard')) { + $lang_code = system_get_language_code(); + $lang_codeset = system_get_language_codeset(); echo <<<EOF <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" lang="<?=system_get_language_code();?>" xml:lang="<?=system_get_language_code();?>"> +<html xmlns="http://www.w3.org/1999/xhtml" lang="$lang_code" xml:lang="$lang_code"> <head> <title>{$g['product_name']}.localdomain - {$g['product_name']} first time setup</title> - <meta http-equiv="Content-Type" content="text/html; charset=<?=system_get_language_codeset();?>" /> + <meta http-equiv="Content-Type" content="text/html; charset=$lang_codeset" /> <link rel="stylesheet" type="text/css" href="/niftycssprintCode.css" media="print" /> <script type="text/javascript">var theme = "{$g['theme']}"</script> <script type="text/javascript" src="/themes/{$g['theme']}/loader.js"></script> @@ -223,7 +225,7 @@ if ($fd) { preg_match("/^ubsec.: (.*?),/", $dmesgl, $matches) or preg_match("/^padlock.: <(.*?)>,/", $dmesgl, $matches) or preg_match("/^glxsb.: (.*?),/", $dmesgl, $matches) or - preg_match("/^aesni.: (.*?),/", $dmesgl, $matches)) { + preg_match("/^aesni.: <(.*?)>/", $dmesgl, $matches)) { $hwcrypto = $matches[1]; break; } |