2012-12-19 14:20:06 +01:00
|
|
|
<?php
|
2013-06-04 15:00:54 +02:00
|
|
|
if(
|
|
|
|
Config::inst()->get('Security', 'token')
|
|
|
|
&& DB::get_alternative_database_name()
|
|
|
|
) {
|
2012-12-19 14:20:06 +01:00
|
|
|
require_once BASE_PATH . '/vendor/autoload.php';
|
|
|
|
|
|
|
|
// Register mailer
|
2012-12-19 15:47:39 +01:00
|
|
|
if($mailer = Session::get('testsession.mailer')) {
|
|
|
|
Email::set_mailer(new $mailer());
|
|
|
|
Email::send_all_emails_to(null);
|
|
|
|
}
|
|
|
|
|
2012-12-19 14:20:06 +01:00
|
|
|
// Set mock date and time
|
2012-12-19 15:47:39 +01:00
|
|
|
$date = Session::get('testsession.date');
|
|
|
|
if($date) {
|
|
|
|
SS_Datetime::set_mock_now($date);
|
2012-12-19 14:20:06 +01:00
|
|
|
}
|
|
|
|
}
|