Skip to content
Snippets Groups Projects
Commit c15aced1 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #72284 by Flanker: fixed the clean URL test.

parent 58752cfa
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -348,7 +348,7 @@ function system_clean_url_settings() { ...@@ -348,7 +348,7 @@ function system_clean_url_settings() {
if (!variable_get('clean_url', 0)) { if (!variable_get('clean_url', 0)) {
if (strpos(request_uri(), '?q=') !== FALSE) { if (strpos(request_uri(), '?q=') !== FALSE) {
$form['clean_url']['#description'] .= t(' Before enabling clean URLs, you must perform a test to determine if your server is properly configured. If you are able to see this page again after clicking the "Run the clean URL test" link, the test has succeeded and the radio buttons above will be available. If instead you are directed to a "Page not found" error, you will need to change the configuration of your server. The <a href="%handbook">handbook page on Clean URLs</a> has additional troubleshooting information. %run-test', array('%handbook' => 'http://drupal.org/node/15365', '%run-test' => '<a href ="'. base_path() . 'admin/settings">'. t('Run the clean URL test') .'</a>')); $form['clean_url']['#description'] .= t(' Before enabling clean URLs, you must perform a test to determine if your server is properly configured. If you are able to see this page again after clicking the "Run the clean URL test" link, the test has succeeded and the radio buttons above will be available. If instead you are directed to a "Page not found" error, you will need to change the configuration of your server. The <a href="%handbook">handbook page on Clean URLs</a> has additional troubleshooting information. %run-test', array('%handbook' => 'http://drupal.org/node/15365', '%run-test' => '<a href ="'. base_path() . 'admin/settings/clean-urls">'. t('Run the clean URL test') .'</a>'));
$form['clean_url']['#attributes'] = array('disabled' => 'disabled'); $form['clean_url']['#attributes'] = array('disabled' => 'disabled');
} }
else { else {
......
...@@ -348,7 +348,7 @@ function system_clean_url_settings() { ...@@ -348,7 +348,7 @@ function system_clean_url_settings() {
if (!variable_get('clean_url', 0)) { if (!variable_get('clean_url', 0)) {
if (strpos(request_uri(), '?q=') !== FALSE) { if (strpos(request_uri(), '?q=') !== FALSE) {
$form['clean_url']['#description'] .= t(' Before enabling clean URLs, you must perform a test to determine if your server is properly configured. If you are able to see this page again after clicking the "Run the clean URL test" link, the test has succeeded and the radio buttons above will be available. If instead you are directed to a "Page not found" error, you will need to change the configuration of your server. The <a href="%handbook">handbook page on Clean URLs</a> has additional troubleshooting information. %run-test', array('%handbook' => 'http://drupal.org/node/15365', '%run-test' => '<a href ="'. base_path() . 'admin/settings">'. t('Run the clean URL test') .'</a>')); $form['clean_url']['#description'] .= t(' Before enabling clean URLs, you must perform a test to determine if your server is properly configured. If you are able to see this page again after clicking the "Run the clean URL test" link, the test has succeeded and the radio buttons above will be available. If instead you are directed to a "Page not found" error, you will need to change the configuration of your server. The <a href="%handbook">handbook page on Clean URLs</a> has additional troubleshooting information. %run-test', array('%handbook' => 'http://drupal.org/node/15365', '%run-test' => '<a href ="'. base_path() . 'admin/settings/clean-urls">'. t('Run the clean URL test') .'</a>'));
$form['clean_url']['#attributes'] = array('disabled' => 'disabled'); $form['clean_url']['#attributes'] = array('disabled' => 'disabled');
} }
else { else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment