From fee294af94151cc90bb6ebaf2709abc6d1f83de5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Tue, 16 Oct 2007 11:41:19 +0000 Subject: basic code simplifications in the installer, uncovered at #178581 --- install.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'install.php') diff --git a/install.php b/install.php index 47661db96..38d2e80f0 100644 --- a/install.php +++ b/install.php @@ -897,8 +897,6 @@ function install_configure_form() { '#weight' => 0, ); - $zones = _system_zonelist(); - $form['server_settings'] = array( '#type' => 'fieldset', '#title' => st('Server settings'), @@ -908,7 +906,7 @@ function install_configure_form() { '#type' => 'select', '#title' => st('Default time zone'), '#default_value' => variable_get('date_default_timezone', 0), - '#options' => $zones, + '#options' => _system_zonelist(), '#description' => st('By default, dates in this site will be displayed in the chosen time zone.'), '#weight' => 5, ); @@ -930,7 +928,7 @@ if (Drupal.jsEnabled) { '#type' => 'radios', '#title' => st('Clean URLs'), '#default_value' => variable_get('clean_url', 0), - '#options' => array(st('Disabled'), st('Enabled')), + '#options' => array(0 => st('Disabled'), 1 => st('Enabled')), '#description' => st('This option makes Drupal emit "clean" URLs (i.e. without ?q= in the URL).'), '#disabled' => TRUE, '#prefix' => '
', -- cgit v1.2.3