Commit ad095cba authored by omega8cc's avatar omega8cc

Both maintenance_mode and clean_url are ignored in Drupal 8

parent 0b7e178d
......@@ -136,7 +136,6 @@ if (isset($_SERVER['db_name'])) {
*/
umask(0002);
$settings['install_profile'] = '<?php print $this->profile ?>';
$settings['<?php print $file_directory_path_var ?>'] = 'sites/<?php print $this->uri ?>/files';
$settings['<?php print $file_directory_temp_var ?>'] = 'sites/<?php print $this->uri ?>/private/temp';
......@@ -152,15 +151,26 @@ if (isset($_SERVER['db_name'])) {
<?php if (isset($config_directories_staging_var)): ?>
$config_directories['staging'] = 'sites/<?php print $this->uri ?>/private/config/staging';
<?php endif; ?>
$settings['clean_url'] = 1;
$settings['aegir_api'] = <?php print !$this->backup_in_progress ? $this->api_version : 0 ?>;
$settings['allow_authorize_operations'] = FALSE;
/**
* Useless currently, because it is not used in Drupal 8 anyway.
* Instead, Drupal 8 is trying to set the clean URLs mode on the fly,
* depending on the request, so we should force this by redirecting
* non-clean to clean URLs on the web server level - Nginx example:
*
* rewrite ^/index.php/(.*)$ $scheme://$host/$1 permanent;
*
*/
$settings['clean_url'] = 1;
<?php if (!$this->site_enabled) : ?>
// And this is for Drupal 8 and above.
$settings['maintenance_mode'] = 1;
<?php endif ?>
/**
* Useless currently, because it is ignored in Drupal 8 anyway.
*/
$settings['maintenance_mode'] = 1;
<?php endif; ?>
/**
* Load services definition file.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment