save language in installer

The language chosen for the installer is now saved to local.php as well.

darcs-hash:20060728094028-7ad00-f6fe5ce9a41b6d8c364e361aa14fbb65902468e0.gz
This commit is contained in:
Andreas Gohr 2006-07-28 11:40:28 +02:00
parent 8af2e4bbb7
commit 0036aa8973
1 changed files with 2 additions and 0 deletions

View File

@ -240,6 +240,7 @@ function check_data($d){
* @author Chris Smith <chris@jalakai.co.uk>
*/
function store_data($d){
global $LC;
$ok = true;
$d['policy'] = (int) $d['policy'];
@ -260,6 +261,7 @@ function store_data($d){
EOT;
$output .= '$conf[\'title\'] = \''.addslashes($d['title'])."';\n";
$output .= '$conf[\'lang\'] = \''.addslashes($LC)."';\n";
if($d['acl']){
$output .= '$conf[\'useacl\'] = 1'.";\n";
$output .= '$conf[\'superuser\'] = \''.$d['superuser']."';\n";