@@ -273,10 +274,10 @@ function system_view_general() {
'#description'=>t('This option makes Drupal emit clean URLs (i.e. without <code>?q=</code> in the URL). You\'ll need <code>ModRewrite</code> support for this to work. See the <code>.htaccess</code> file in Drupal\'s top-level directory for more information.')
);
variable_set('clean_url_ok',0);
global$base_url;
// We will use a random URL so there is no way a proxy or a browser could cache the "no such image" answer.
drupal_set_message(t('It appears your host is not configured correctly for Clean URLs. Please check for <code>ModRewrite</code> support with your administrator.'),'error');
$values['clean_url']=0;
}
foreach($valuesas$key=>$value){
if($op==t('Reset to defaults')){
variable_del($key);
...
...
@@ -773,21 +780,6 @@ function system_settings_form_submit($form_id, $values) {
menu_rebuild();
}
/**
* Do the clean url validation, changing the form property if it doesn't work.
drupal_set_message(t('It appears your host is not configured correctly for Clean URLs. Please check for <code>ModRewrite</code> support with your administrator.'),'error');
$edit['clean_url']=0;
}
}
/**
* Menu callback; displays a listing of all themes.
@@ -273,10 +274,10 @@ function system_view_general() {
'#description'=>t('This option makes Drupal emit clean URLs (i.e. without <code>?q=</code> in the URL). You\'ll need <code>ModRewrite</code> support for this to work. See the <code>.htaccess</code> file in Drupal\'s top-level directory for more information.')
);
variable_set('clean_url_ok',0);
global$base_url;
// We will use a random URL so there is no way a proxy or a browser could cache the "no such image" answer.
drupal_set_message(t('It appears your host is not configured correctly for Clean URLs. Please check for <code>ModRewrite</code> support with your administrator.'),'error');
$values['clean_url']=0;
}
foreach($valuesas$key=>$value){
if($op==t('Reset to defaults')){
variable_del($key);
...
...
@@ -773,21 +780,6 @@ function system_settings_form_submit($form_id, $values) {
menu_rebuild();
}
/**
* Do the clean url validation, changing the form property if it doesn't work.
drupal_set_message(t('It appears your host is not configured correctly for Clean URLs. Please check for <code>ModRewrite</code> support with your administrator.'),'error');
$edit['clean_url']=0;
}
}
/**
* Menu callback; displays a listing of all themes.