? .DS_Store
? clean_url_form_02.patch
? clean_url_form_03.patch
? clean_url_form_04.patch
? modules/.DS_Store
? sites/.DS_Store
? sites/default/.DS_Store
? sites/default/files
? sites/default/settings.php
Index: install.php
===================================================================
RCS file: /cvs/drupal/drupal/install.php,v
retrieving revision 1.161
diff -u -p -r1.161 install.php
--- install.php 25 Mar 2009 16:40:51 -0000 1.161
+++ install.php 2 Apr 2009 22:12:26 -0000
@@ -725,7 +725,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 handbook page on Clean URLs 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) {
@@ -1040,15 +1040,8 @@ function install_configure_form(&$form_s
);
$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 ?q= in the URL).'),
- '#disabled' => TRUE,
- '#prefix' => '
',
- '#suffix' => '
',
- '#weight' => 10,
);
$form['server_settings']['update_status_module'] = array(
Index: modules/system/system.admin.inc
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/system.admin.inc,v
retrieving revision 1.131
diff -u -p -r1.131 system.admin.inc
--- modules/system/system.admin.inc 17 Mar 2009 15:26:29 -0000 1.131
+++ modules/system/system.admin.inc 2 Apr 2009 22:12:27 -0000
@@ -1767,11 +1767,10 @@ function system_site_maintenance_setting
*/
function system_clean_url_settings() {
$form['clean_url'] = array(
- '#type' => 'radios',
- '#title' => t('Clean URLs'),
+ '#type' => 'checkbox',
+ '#title' => t('Enable clean URLs'),
'#default_value' => 0,
- '#options' => array(t('Disabled'), t('Enabled')),
- '#description' => t('This option makes Drupal emit "clean" URLs (i.e. without ?q= in the URL).'),
+ '#description' => t('Use URLs like example.com/user instead of example.com/?q=user.'),
);
if (!variable_get('clean_url', 0)) {
@@ -1784,9 +1783,6 @@ function system_clean_url_settings() {
$form['clean_url']['#prefix'] = '';
$form['clean_url']['#suffix'] = '
' . t('Run the clean url test.', array('@clean_url' => base_path() . 'admin/settings/clean-urls')) . '
';
}
- else {
- $form['clean_url']['#description'] .= ' ' . t('Your server has been successfully tested to support this feature.') . '
';
- }
}
return system_settings_form($form, TRUE);
Index: modules/system/system.js
===================================================================
RCS file: /cvs/drupal/drupal/modules/system/system.js,v
retrieving revision 1.21
diff -u -p -r1.21 system.js
--- modules/system/system.js 17 Mar 2009 15:26:29 -0000 1.21
+++ modules/system/system.js 2 Apr 2009 22:12:27 -0000
@@ -24,8 +24,7 @@ Drupal.behaviors.cleanURLsSettingsCheck
dataType: 'json',
success: function () {
// Check was successful.
- $("#clean-url input.form-radio").attr("disabled", false);
- $("#clean-url .description span").append(''+ Drupal.t('Your server has been successfully tested to support this feature.') +"
");
+ $("#clean-url input.form-checkbox").attr("disabled", false);
$("#testing").hide();
},
error: function() {
@@ -47,8 +46,6 @@ Drupal.behaviors.cleanURLsSettingsCheck
*/
Drupal.cleanURLsInstallCheck = function() {
var url = location.protocol +"//"+ location.host + Drupal.settings.basePath +"admin/settings/clean-urls/check";
- $("#clean-url .description").append(''+ Drupal.settings.cleanURL.testing +"
");
- $("#clean-url.install").css("display", "block");
// Submit a synchronous request to avoid database errors associated with
// concurrent requests during install.
$.ajax({
@@ -57,18 +54,9 @@ Drupal.cleanURLsInstallCheck = function(
dataType: 'json',
success: function () {
// Check was successful.
- $("#clean-url input.form-radio").attr("disabled", false);
- $("#clean-url input.form-radio").attr("checked", 1);
- $("#clean-url .description span").append(''+ Drupal.settings.cleanURL.success +"
");
- $("#testing").hide();
+ $("#edit-clean-url").attr("value", 1);
},
- error: function() {
- // Check failed.
- $("#clean-url .description span").append(''+ Drupal.settings.cleanURL.failure +"
");
- $("#testing").hide();
- }
});
- $("#clean-url").addClass('clean-url-processed');
};
/**