From 4e082a17bcc0fbd532942eea045aa4bb9e46e92c Mon Sep 17 00:00:00 2001
From: "florian.azizian" <florian.azizian@maarch.org>
Date: Fri, 17 Apr 2020 16:08:06 +0100
Subject: [PATCH] FEAT #13679 TIME 0:15 change path to lck notification

---
 bin/notification/load_basket_event_stack.php     | 5 ++---
 bin/notification/load_process_email_stack.php    | 5 ++---
 bin/notification/load_process_event_stack.php    | 5 ++---
 bin/notification/load_stack_letterbox_alerts.php | 5 ++---
 4 files changed, 8 insertions(+), 12 deletions(-)

diff --git a/bin/notification/load_basket_event_stack.php b/bin/notification/load_basket_event_stack.php
index 14562be3d3d..61578c4dfd8 100644
--- a/bin/notification/load_basket_event_stack.php
+++ b/bin/notification/load_basket_event_stack.php
@@ -33,7 +33,6 @@ class IncludeFileError extends Exception
 $GLOBALS['batchName']    = 'basket_event_stack';
 $GLOBALS['wb']           = '';
 $totalProcessedResources = 0;
-$batchDirectory          = '';
 
 // Load tools
 include('batch_tools.php');
@@ -98,8 +97,8 @@ chdir($maarchDirectory);
 $maarchUrl  = (string)$config->MaarchUrl;
 
 $GLOBALS['customId']  = $customID;
-$GLOBALS['batchDirectory'] = $maarchDirectory . 'modules'
-                           . DIRECTORY_SEPARATOR . 'notifications';
+$GLOBALS['batchDirectory'] = $maarchDirectory . 'bin'
+                           . DIRECTORY_SEPARATOR . 'notification';
 
 set_include_path(get_include_path() . PATH_SEPARATOR . $maarchDirectory);
 
diff --git a/bin/notification/load_process_email_stack.php b/bin/notification/load_process_email_stack.php
index 5444347e048..b0623f81198 100644
--- a/bin/notification/load_process_email_stack.php
+++ b/bin/notification/load_process_email_stack.php
@@ -33,7 +33,6 @@ class IncludeFileError extends Exception
 $GLOBALS['batchName'] = 'process_email_stack';
 $GLOBALS['wb'] = '';
 $totalProcessedResources = 0;
-$batchDirectory = '';
 
 // Load tools
 include('batch_tools.php');
@@ -89,8 +88,8 @@ if ($customID <> '') {
 chdir($maarchDirectory);
 
 $GLOBALS['customId']  = $customID;
-$GLOBALS['batchDirectory'] = $GLOBALS['maarchDirectory'] . 'modules'
-                           . DIRECTORY_SEPARATOR . 'notifications';
+$GLOBALS['batchDirectory'] = $GLOBALS['maarchDirectory'] . 'bin'
+                           . DIRECTORY_SEPARATOR . 'notification';
 
 set_include_path(get_include_path() . PATH_SEPARATOR . $GLOBALS['maarchDirectory']);
 
diff --git a/bin/notification/load_process_event_stack.php b/bin/notification/load_process_event_stack.php
index a80dea70cbd..57f57dc34e9 100644
--- a/bin/notification/load_process_event_stack.php
+++ b/bin/notification/load_process_event_stack.php
@@ -33,7 +33,6 @@ class IncludeFileError extends Exception
 $GLOBALS['batchName']    = 'process_event_stack';
 $GLOBALS['wb']           = '';
 $totalProcessedResources = 0;
-$batchDirectory          = '';
 
 // Load tools
 include('batch_tools.php');
@@ -98,8 +97,8 @@ chdir($maarchDirectory);
 $maarchUrl  = (string)$config->MaarchUrl;
 
 $GLOBALS['customId']  = $customID;
-$GLOBALS['batchDirectory'] = $maarchDirectory . 'modules'
-                           . DIRECTORY_SEPARATOR . 'notifications';
+$GLOBALS['batchDirectory'] = $maarchDirectory . 'bin'
+                           . DIRECTORY_SEPARATOR . 'notification';
 
 set_include_path(get_include_path() . PATH_SEPARATOR . $maarchDirectory);
 
diff --git a/bin/notification/load_stack_letterbox_alerts.php b/bin/notification/load_stack_letterbox_alerts.php
index 911da726c1c..c454c351e5c 100644
--- a/bin/notification/load_stack_letterbox_alerts.php
+++ b/bin/notification/load_stack_letterbox_alerts.php
@@ -30,10 +30,9 @@ class IncludeFileError extends Exception
 }
 
 // Globals variables definition
-$GLOBALS['batchName'] = 'process_letterbox_alerts';
-$GLOBALS['wb'] = '';
+$GLOBALS['batchName']    = 'process_letterbox_alerts';
+$GLOBALS['wb']           = '';
 $totalProcessedResources = 0;
-$batchDirectory = '';
 
 // Load tools
 include('batch_tools.php');
-- 
GitLab