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

hotline#184166 : Newsletter : Error when sending newsletters

parent de7b9101
Branches
Tags
1 merge request!4814hotline#184166 : Newsletter : Error when sending newsletters
Pipeline #25151 passed with stage
in 22 minutes and 28 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