From 1e11b9642729d9529e59a93d28ad8d9a5030f39f Mon Sep 17 00:00:00 2001 From: webchick <webchick@24967.no-reply.drupal.org> Date: Tue, 6 Aug 2013 23:53:16 -0700 Subject: [PATCH] Issue #2056845 by StephaneQ | tstoeckler: Fixed Stale documentation in drupal_bootstrap() regarding DRUPAL_ROOT. --- core/includes/bootstrap.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc index 481adea4fd7c..da3a27768470 100644 --- a/core/includes/bootstrap.inc +++ b/core/includes/bootstrap.inc @@ -1752,8 +1752,7 @@ function drupal_anonymous_user() { * * In order to bootstrap Drupal from another PHP script, you can use this code: * @code - * define('DRUPAL_ROOT', '/path/to/drupal'); - * require_once DRUPAL_ROOT . '/core/includes/bootstrap.inc'; + * require_once '/path/to/drupal/core/includes/bootstrap.inc'; * drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); * @endcode * -- GitLab