Commit e5e34450 authored by webchick's avatar webchick
Browse files

Revert "Issue #1875948 by chx, fabpot: set sensible default values for Kernel default directories."

The 700 directory permissions are breaking Drush. Temporarily rolling back while we figure that out.

This reverts commit 595459b3.
parent 91479f42
......@@ -149,39 +149,6 @@ public function boot() {
}
}
/**
* Overrides Kernel::getRootDir().
*
* It sets the value to the same as DRUPAL_ROOT.
*/
public function getRootDir() {
return DRUPAL_ROOT;
}
/**
* Overrides Kernel::getCacheDir().
*
* It sets a sensible default cache directory for Drupal.
*/
public function getCacheDir() {
if (!is_dir($dir = variable_get('file_public_path', conf_path() . '/files') . '/cache/' . $this->environment)) {
mkdir($dir, 0700, TRUE);
}
return $dir;
}
/**
* Overrides Kernel::getLogDir().
*
* It sets a sensible default log directory for Drupal.
*/
public function getLogDir() {
if (!is_dir($dir = variable_get('file_public_path', conf_path() . '/files') . '/logs/' . $this->environment)) {
mkdir($dir, 0700, TRUE);
}
return $dir;
}
/**
* Returns an array of available bundles.
*
......
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