Commit d802c69a authored by webchick's avatar webchick

#363013 by mannkind: Use getwd() rather than realpath(__FILE__) to determine...

#363013 by mannkind: Use getwd() rather than realpath(__FILE__) to determine drupal root, so we don't break symlinks.
parent c51b5c8b
......@@ -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);
......
......@@ -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);
......
......@@ -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';
......
......@@ -4,7 +4,7 @@
/**
* Root directory of Drupal installation.
*/
define('DRUPAL_ROOT', dirname(realpath(__FILE__)));
define('DRUPAL_ROOT', getcwd());
/**
* @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);
......
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