Skip to content
Snippets Groups Projects
Commit a632af22 authored by Florian Azizian's avatar Florian Azizian
Browse files

FEAT #13679 TIME 0:15 refactoring notification with custom

parent 5e651343
No related branches found
No related tags found
No related merge requests found
......@@ -97,6 +97,7 @@ if ($customID <> '') {
chdir($maarchDirectory);
$maarchUrl = (string)$config->MaarchUrl;
$GLOBALS['customId'] = $customID;
$GLOBALS['batchDirectory'] = $maarchDirectory . 'modules'
. DIRECTORY_SEPARATOR . 'notifications'
. DIRECTORY_SEPARATOR . 'batch';
......
......@@ -88,6 +88,7 @@ if ($customID <> '') {
}
chdir($maarchDirectory);
$GLOBALS['customId'] = $customID;
$GLOBALS['batchDirectory'] = $GLOBALS['maarchDirectory'] . 'modules'
. DIRECTORY_SEPARATOR . 'notifications'
. DIRECTORY_SEPARATOR . 'batch';
......
......@@ -97,6 +97,7 @@ if ($customID <> '') {
chdir($maarchDirectory);
$maarchUrl = (string)$config->MaarchUrl;
$GLOBALS['customId'] = $customID;
$GLOBALS['batchDirectory'] = $maarchDirectory . 'modules'
. DIRECTORY_SEPARATOR . 'notifications'
. DIRECTORY_SEPARATOR . 'batch';
......
......@@ -92,6 +92,7 @@ chdir($maarchDirectory);
$maarchUrl = (string)$config->MaarchUrl;
$GLOBALS['customId'] = $customID;
$GLOBALS['batchDirectory'] = $maarchDirectory . 'modules'
. DIRECTORY_SEPARATOR . 'notifications'
. DIRECTORY_SEPARATOR . 'batch';
......
......@@ -25,6 +25,12 @@ class CoreConfigModel
return $customId;
}
// Use for script
if (!empty($GLOBALS['customId'])) {
$customId = $GLOBALS['customId'];
return $customId;
}
if (!file_exists('custom/custom.xml') || empty($_SERVER['SCRIPT_NAME']) || empty($_SERVER['SERVER_ADDR'])) {
$customId = '';
return $customId;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment