diff --git a/src/Drupal/Driver/Cores/Drupal7.php b/src/Drupal/Driver/Cores/Drupal7.php index 37b4fa8d..5e232401 100644 --- a/src/Drupal/Driver/Cores/Drupal7.php +++ b/src/Drupal/Driver/Cores/Drupal7.php @@ -22,14 +22,12 @@ public function bootstrap() { } // Bootstrap Drupal. - $current_path = getcwd(); chdir(DRUPAL_ROOT); drupal_bootstrap(DRUPAL_BOOTSTRAP_CONFIGURATION); if (empty($GLOBALS['databases'])) { throw new BootstrapException('Missing database setting, verify the database configuration in settings.php.'); } drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); - chdir($current_path); } /** diff --git a/src/Drupal/Driver/Cores/Drupal8.php b/src/Drupal/Driver/Cores/Drupal8.php index 94df44d7..7f6ac0af 100644 --- a/src/Drupal/Driver/Cores/Drupal8.php +++ b/src/Drupal/Driver/Cores/Drupal8.php @@ -26,7 +26,6 @@ public function bootstrap() { } // Bootstrap Drupal. - $current_path = getcwd(); chdir(DRUPAL_ROOT); require_once DRUPAL_ROOT . '/core/vendor/autoload.php'; require_once DRUPAL_ROOT . '/core/includes/bootstrap.inc'; @@ -39,8 +38,6 @@ public function bootstrap() { // Initialise an anonymous session. required for the bootstrap. \Drupal::service('session_manager')->start(); - - chdir($current_path); } /**