Commit bcfda276 authored by anarcat's avatar anarcat Committed by anarcat

comments and whitespace again

parent 276d2d61
...@@ -70,13 +70,23 @@ function drush_provision_drupal_post_provision_verify($url = NULL) { ...@@ -70,13 +70,23 @@ function drush_provision_drupal_post_provision_verify($url = NULL) {
} }
/** /**
* Inject the relevant .htacces configuration into the global apache configuration * Inject the relevant .htacces configuration into the global apache
* configuration
*
* This basically loads the regular .htacess but adds an AllowOverride
* none so the .htaccess are ignored, as a performance improvement.
*
* @see platform/provision_drupal_htaccess.tpl.php
* @see hook_provision_apache_dir_config()
*/ */
function provision_drupal_provision_apache_dir_config($data = null) { function provision_drupal_provision_apache_dir_config($data = null) {
$htaccess = file_get_contents(dirname(__FILE__) . "/provision_drupal_htaccess.tpl.php"); $htaccess = file_get_contents(dirname(__FILE__) . "/provision_drupal_htaccess.tpl.php");
$htaccess .= <<<EOF $htaccess .= <<<EOF
# Do not read the platform's .htaccess # Do not read the platform's .htaccess
AllowOverride none AllowOverride none
EOF; EOF;
# the trailing newline above is necessary
return $htaccess; return $htaccess;
} }
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