diff --git a/core/scripts/rebuild_token_calculator.sh b/core/scripts/rebuild_token_calculator.sh index 38a64ab119c055feb58e090ee11257430c51c110..362be3d5fdafc4eecfa6646bea84c7fab972a8e6 100755 --- a/core/scripts/rebuild_token_calculator.sh +++ b/core/scripts/rebuild_token_calculator.sh @@ -15,11 +15,11 @@ return; } -require __DIR__ . '/../../autoload.php'; +$autoloader = require __DIR__ . '/../../autoload.php'; require_once __DIR__ . '/../includes/bootstrap.inc'; $request = Request::createFromGlobals(); -Settings::initialize(DrupalKernel::findSitePath($request)); +Settings::initialize(DRUPAL_ROOT, DrupalKernel::findSitePath($request), $autoloader); $timestamp = time(); $token = Crypt::hmacBase64($timestamp, Settings::get('hash_salt'));