diff --git a/VERSIONS_HOTLINE/184166 b/VERSIONS_HOTLINE/184166 new file mode 100644 index 0000000000000000000000000000000000000000..0e0637b1d9ddb87335fe624bb02ccd9e4dc79ef2 --- /dev/null +++ b/VERSIONS_HOTLINE/184166 @@ -0,0 +1 @@ + - correctif #184166 : Lettre d'information : Résolution d'un souci d'envoi des lettres d'information \ No newline at end of file diff --git a/scripts/sendNewsletter.php b/scripts/sendNewsletter.php index 97f01911b9d69c39d8efa1282aa8abb3cf4c15c3..154415cf123bf03c0746cc6d31f83647969eb6b7 100644 --- a/scripts/sendNewsletter.php +++ b/scripts/sendNewsletter.php @@ -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);