Issue #2056845 by StephaneQ | tstoeckler: Fixed Stale documentation in drupal_bootstrap() regarding DRUPAL_ROOT.

8.0.x
webchick 2013-08-06 23:53:16 -07:00
parent 1039d1de6d
commit 1e11b96427
1 changed files with 1 additions and 2 deletions

View File

@ -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
*