Security update for Core, with self-updated composer
[yaffs-website] / web / core / scripts / rebuild_token_calculator.sh
index 38a64ab119c055feb58e090ee11257430c51c110..362be3d5fdafc4eecfa6646bea84c7fab972a8e6 100755 (executable)
@@ -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'));