Commit 0be10caf authored by alban's avatar alban
Browse files

[fix] phpunit errors with uninitialized * variables

parent 79ebbff3
......@@ -52,12 +52,16 @@ foreach ($configFile as $line) {
// ********************
// Define constants from vars of /etc/alternc/local.sh
define('ALTERNC_MAIL', "$L_ALTERNC_MAIL");
define('ALTERNC_HTML', "$L_ALTERNC_HTML");
if( isset ($L_ALTERNC_MAIL) ) {
define('ALTERNC_MAIL', "$L_ALTERNC_MAIL");
}if( isset ($ALTERNC_HTML) ) {
define('ALTERNC_HTML', "$ALTERNC_HTML");
}if( isset ($ALTERNC_LOGS) ) {
define('ALTERNC_LOGS', "$ALTERNC_LOGS");
}
if(isset($L_ALTERNC_LOGS_ARCHIVE)){
define('ALTERNC_LOGS_ARCHIVE', "$L_ALTERNC_LOGS_ARCHIVE");
}
define('ALTERNC_LOGS', "$L_ALTERNC_LOGS");
define('ALTERNC_LOCALES', ALTERNC_PANEL."/locales");
define('ALTERNC_LOCK_JOBS', '/var/run/alternc/jobs-lock');
define('ALTERNC_LOCK_PANEL', '/var/lib/alternc/panel/nologin.lock');
......
Supports Markdown
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