diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-04-04 00:35:46 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-04-04 00:35:46 +0000 |
commit | 438aa990180b85bf1fb0ea862b6ef3ee91cf6663 (patch) | |
tree | e536d72ad07f2c08282e7462cb098100227336fc /install.php | |
parent | 022fdbc4507f223f3fd42372ae9d4f3f34cb562d (diff) | |
download | brdo-438aa990180b85bf1fb0ea862b6ef3ee91cf6663.tar.gz brdo-438aa990180b85bf1fb0ea862b6ef3ee91cf6663.tar.bz2 |
- Patch #392362 by Xano, Dave Reid: remove clean URL option from the installation process -- automatically enable clean URLs when possible, or hide the option when clean URLs cannot be enabled.
Diffstat (limited to 'install.php')
-rw-r--r-- | install.php | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/install.php b/install.php index f154de33a..807453111 100644 --- a/install.php +++ b/install.php @@ -727,7 +727,7 @@ function install_tasks($profile, $task) { drupal_add_js('misc/timezone.js'); // We add these strings as settings because JavaScript translation does not // work on install time. - drupal_add_js(array('copyFieldValue' => array('edit-site-mail' => array('edit-account-mail')), 'cleanURL' => array('success' => st('Your server has been successfully tested to support this feature.'), 'failure' => st('Your system configuration does not currently support this feature. The <a href="http://drupal.org/node/15365">handbook page on Clean URLs</a> has additional troubleshooting information.'), 'testing' => st('Testing clean URLs...'))), 'setting'); + drupal_add_js(array('copyFieldValue' => array('edit-site-mail' => array('edit-account-mail'))), 'setting'); drupal_add_js(' // Global Killswitch if (Drupal.jsEnabled) { @@ -1042,15 +1042,9 @@ function install_configure_form(&$form_state, $url) { ); $form['server_settings']['clean_url'] = array( - '#type' => 'radios', - '#title' => st('Clean URLs'), + '#type' => 'hidden', '#default_value' => 0, - '#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">', - '#suffix' => '</div>', - '#weight' => 10, + '#attributes' => array('class' => 'install'), ); $form['server_settings']['update_status_module'] = array( |