#363013 by mannkind: Use getwd() rather than realpath(__FILE__) to determine drupal root, so we don't break symlinks.

merge-requests/26/head
Angie Byron 2009-02-08 20:27:51 +00:00
parent c51b5c8b0b
commit d802c69a43
5 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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';

View File

@ -4,7 +4,7 @@
/**
* Root directory of Drupal installation.
*/
define('DRUPAL_ROOT', dirname(realpath(__FILE__)));
define('DRUPAL_ROOT', getcwd());
/**
* @file

View File

@ -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);