mirror of
https://github.com/silverstripe/silverstripe-testsession
synced 2024-10-22 14:06:00 +02:00
Check for Security.token before setting test session state
Otherwise we'll get into a catch22 if it's not set: The manifest includes this _config.php, which in turn throws a fatal exception on the token not existing. It would be recreated a couple of lines further down in Core.php when the ConfigManifest is pushed, but never gets this far.
This commit is contained in:
parent
d843933655
commit
9a8d24c116
@ -1,5 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
if(DB::get_alternative_database_name()) {
|
if(
|
||||||
|
Config::inst()->get('Security', 'token')
|
||||||
|
&& DB::get_alternative_database_name()
|
||||||
|
) {
|
||||||
require_once BASE_PATH . '/vendor/autoload.php';
|
require_once BASE_PATH . '/vendor/autoload.php';
|
||||||
|
|
||||||
// Register mailer
|
// Register mailer
|
||||||
|
Loading…
Reference in New Issue
Block a user