diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-02-08 20:27:51 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-02-08 20:27:51 +0000 |
commit | d802c69a43ab0f47e88f8b26ea9f655af1404a5f (patch) | |
tree | f82efe031b4b91b06a224677f2941f5005722b11 | |
parent | c51b5c8b0b1663fec1cf2af882b58bbdb46c5a97 (diff) | |
download | brdo-d802c69a43ab0f47e88f8b26ea9f655af1404a5f.tar.gz brdo-d802c69a43ab0f47e88f8b26ea9f655af1404a5f.tar.bz2 |
#363013 by mannkind: Use getwd() rather than realpath(__FILE__) to determine drupal root, so we don't break symlinks.
-rw-r--r-- | cron.php | 2 | ||||
-rw-r--r-- | index.php | 2 | ||||
-rw-r--r-- | install.php | 2 | ||||
-rw-r--r-- | update.php | 2 | ||||
-rw-r--r-- | xmlrpc.php | 2 |
5 files changed, 5 insertions, 5 deletions
@@ -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); diff --git a/install.php b/install.php index 60834d72e..939f64046 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 b45f2045c..215727314 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 55ac6f110..4b6b1153f 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); |