summaryrefslogtreecommitdiffstats
path: root/core/scripts
diff options
context:
space:
mode:
authorNathaniel Catchpole2017-10-12 14:46:59 (GMT)
committerNathaniel Catchpole2017-10-12 14:46:59 (GMT)
commitaf68144f0512db86f8b4685e8f7e444d90b1e1f0 (patch)
treee417994de986ac48de01ebff6136901724333d34 /core/scripts
parent0c0c63e9af3a657426c2343c2846769f50674043 (diff)
Issue #2356913 by jmolivas, mgifford, maurizio.ganovelli, zhuber: Fix rebuild_token_calculator
Diffstat (limited to 'core/scripts')
-rwxr-xr-xcore/scripts/rebuild_token_calculator.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/scripts/rebuild_token_calculator.sh b/core/scripts/rebuild_token_calculator.sh
index 38a64ab..362be3d 100755
--- a/core/scripts/rebuild_token_calculator.sh
+++ b/core/scripts/rebuild_token_calculator.sh
@@ -15,11 +15,11 @@ if (PHP_SAPI !== 'cli') {
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'));