diff --git a/cron.php b/cron.php index 5d25f884186..26c4a253ca3 100644 --- a/cron.php +++ b/cron.php @@ -9,7 +9,7 @@ /** * Root directory of Drupal installation. */ -define('DRUPAL_ROOT', dirname(realpath(__FILE__))); +define('DRUPAL_ROOT', getcwd()); include_once DRUPAL_ROOT . '/includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); diff --git a/index.php b/index.php index d776d767a75..f83ae4c019a 100644 --- a/index.php +++ b/index.php @@ -15,7 +15,7 @@ /** * Root directory of Drupal installation. */ -define('DRUPAL_ROOT', dirname(realpath(__FILE__))); +define('DRUPAL_ROOT', getcwd()); require_once DRUPAL_ROOT . '/includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); diff --git a/install.php b/install.php index 60834d72e08..939f6404622 100644 --- a/install.php +++ b/install.php @@ -4,7 +4,7 @@ /** * Root directory of Drupal installation. */ -define('DRUPAL_ROOT', dirname(realpath(__FILE__))); +define('DRUPAL_ROOT', getcwd()); require_once DRUPAL_ROOT . '/includes/install.inc'; diff --git a/update.php b/update.php index b45f2045c8f..215727314b4 100644 --- a/update.php +++ b/update.php @@ -4,7 +4,7 @@ /** * Root directory of Drupal installation. */ -define('DRUPAL_ROOT', dirname(realpath(__FILE__))); +define('DRUPAL_ROOT', getcwd()); /** * @file diff --git a/xmlrpc.php b/xmlrpc.php index 55ac6f11022..4b6b1153fce 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -9,7 +9,7 @@ /** * Root directory of Drupal installation. */ -define('DRUPAL_ROOT', dirname(realpath(__FILE__))); +define('DRUPAL_ROOT', getcwd()); include_once DRUPAL_ROOT . '/includes/bootstrap.inc'; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);