summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-10-16 11:41:19 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-10-16 11:41:19 +0000
commitfee294af94151cc90bb6ebaf2709abc6d1f83de5 (patch)
tree8fc4891ee3b068f04a45565d3f88c4a68a30519f /install.php
parente78b7890c590e2f43453b608f5aba9249e187054 (diff)
downloadbrdo-fee294af94151cc90bb6ebaf2709abc6d1f83de5.tar.gz
brdo-fee294af94151cc90bb6ebaf2709abc6d1f83de5.tar.bz2
basic code simplifications in the installer, uncovered at #178581
Diffstat (limited to 'install.php')
-rw-r--r--install.php6
1 files changed, 2 insertions, 4 deletions
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 <code>?q=</code> in the URL).'),
'#disabled' => TRUE,
'#prefix' => '<div id="clean-url" class="install">',