Skip to content
Snippets Groups Projects
Commit 6e1faadc authored by Henri-Damien LAURENT's avatar Henri-Damien LAURENT
Browse files

Merge branch 'hotline#184166_probleme_lettre_d_information' into 'master'

hotline#184166 : Newsletter : Error when sending newsletters

See merge request !4814
parents dfad68d0 0ba31934
Branches
Tags
1 merge request!4814hotline#184166 : Newsletter : Error when sending newsletters
Pipeline #25195 passed with stage
in 27 minutes and 32 seconds
- correctif #184166 : Lettre d'information : Résolution d'un souci d'envoi des lettres d'information
\ No newline at end of file
......@@ -26,12 +26,10 @@ $dispatch_id = $argv[4];
require_once 'includes.php';
$_SERVER['DOCUMENT_ROOT'] = (new Storm_FileSystem_Disk)->getcwd();
$bokeh = (new Bokeh_Engine())->warmUp();
if ('test' != $dispatch_id
&& (!$dispatch = Class_Newsletter_Dispatch::find($dispatch_id))) {
printf("Unkown dispatch %s\n", $dispatch_id);
printf("Unknown dispatch %s\n", $dispatch_id);
exit(1);
}
......@@ -48,5 +46,7 @@ register_shutdown_function($my_shutdown);
$bokeh->powerOn();
$_SERVER['DOCUMENT_ROOT'] = (new Storm_FileSystem_Disk)->getcwd();
if ($dispatch)
$dispatch->sendBy(20);
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment