Re: [development] DRUPAL_ROOT const in 7.0

2011-02-07 Thread Jamie Holly
Check out these issues on it: http://drupal.org/node/259623 http://drupal.org/node/319154 Jamie Holly http://www.intoxination.net http://www.hollyit.net On 2/7/2011 4:43 AM, Massar Dev-Team wrote: In Drupal v7.0 index.php file: define('DRUPAL_ROOT', getcwd()); What is the point of using ge

[development] DRUPAL_ROOT const in 7.0

2011-02-07 Thread Massar Dev-Team
In Drupal v7.0 index.php file: define('DRUPAL_ROOT', getcwd()); What is the point of using getcwd() and not dirname(__FILE__) instead? getcwd() will rely on the directory set by web server, right? while dirname(__FILE__) is independent. I used to hack bootstrap.inc in Drupal-6.x to add this cons