diff options
author | pb1dft <pb1dft@ampache> | 2006-11-20 00:35:34 +0000 |
---|---|---|
committer | pb1dft <pb1dft@ampache> | 2006-11-20 00:35:34 +0000 |
commit | 01b784da2d7dcfcd08739e7ae8ed1e890805f12d (patch) | |
tree | 3ed6b171aebe6f3ff89b6631a8deb5028c087a77 /install.php | |
parent | 78de76eb7af36bb5c174ee7c3fafb41814fec3ed (diff) | |
download | ampache-01b784da2d7dcfcd08739e7ae8ed1e890805f12d.tar.gz ampache-01b784da2d7dcfcd08739e7ae8ed1e890805f12d.tar.bz2 ampache-01b784da2d7dcfcd08739e7ae8ed1e890805f12d.zip |
Fixed missing DOCTYPE and other required stuff on the install pages
Diffstat (limited to 'install.php')
-rw-r--r-- | install.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/install.php b/install.php index db59dd59..849cda5d 100644 --- a/install.php +++ b/install.php @@ -192,7 +192,7 @@ switch ($action) { case 'init': /* First step of installation */ // Get the language - $htmllang = $_REQUEST['htmllang']; + $htmllang = $_POST['htmllang']; // Set the lang in the conf array conf(array('lang'=>$htmllang)); @@ -207,16 +207,16 @@ switch ($action) { 'nl_NL' => 'ISO-8859-15', 'tr_TR' => 'iso-8859-9', 'zh_CN' => 'GBK'); - $charset = $charsets[$_REQUEST['htmllang']]; - + $charset = $charsets[$_POST['htmllang']]; + // Set the site_charset in the conf array - conf(array('site_charset'=>$charsets[$_REQUEST['htmllang']])); + conf(array('site_charset'=>$charsets[$_POST['htmllang']])); // Now we make voodoo with the Load gettext mojo load_gettext(); // Page ready :) - header ("Content-Type: text/html; charset=" . conf('site_charset')); + header ("Content-Type: text/html; charset=$charset"); require_once('templates/show_install.inc'); break; @@ -225,8 +225,8 @@ switch ($action) { if (!function_exists('mysql_query')) { header ("Location: test.php"); } - - + $htmllang = "en_US"; + header ("Content-Type: text/html; charset=UTF-8"); /* Show the language options first */ require_once('templates/show_install_lang.inc.php'); break; |