cleaning up PHP-Notices of old configs

This commit is contained in:
dg9vh 2016-10-26 13:06:45 +00:00
parent b39624131c
commit e2a2c5d306
3 changed files with 6 additions and 3 deletions

View file

@ -7,6 +7,7 @@ include "include/tools.php";
include "include/functions.php"; include "include/functions.php";
$mmdvmconfigs = getMMDVMConfig(); $mmdvmconfigs = getMMDVMConfig();
if (!defined("MMDVMLOGPREFIX"))
define("MMDVMLOGPREFIX", getConfigItem("Log", "FileRoot", $mmdvmconfigs)); define("MMDVMLOGPREFIX", getConfigItem("Log", "FileRoot", $mmdvmconfigs));
$logLinesMMDVM = getMMDVMLog(); $logLinesMMDVM = getMMDVMLog();
$reverseLogLinesMMDVM = $logLinesMMDVM; $reverseLogLinesMMDVM = $logLinesMMDVM;

View file

@ -1,6 +1,7 @@
<?php <?php
//Some basic inits //Some basic inits
$mmdvmconfigs = getMMDVMConfig(); $mmdvmconfigs = getMMDVMConfig();
if (!defined("MMDVMLOGPREFIX"))
define("MMDVMLOGPREFIX", getConfigItem("Log", "FileRoot", $mmdvmconfigs)); define("MMDVMLOGPREFIX", getConfigItem("Log", "FileRoot", $mmdvmconfigs));
echo MMDVMLOGPREFIX; echo MMDVMLOGPREFIX;
$logLinesMMDVM = getMMDVMLog(); $logLinesMMDVM = getMMDVMLog();

View file

@ -6,6 +6,7 @@ include "config/config.php";
include "include/tools.php"; include "include/tools.php";
include "include/functions.php"; include "include/functions.php";
$mmdvmconfigs = getMMDVMConfig(); $mmdvmconfigs = getMMDVMConfig();
if (!defined("MMDVMLOGPREFIX"))
define("MMDVMLOGPREFIX", getConfigItem("Log", "FileRoot", $mmdvmconfigs)); define("MMDVMLOGPREFIX", getConfigItem("Log", "FileRoot", $mmdvmconfigs));
$logLinesMMDVM = getShortMMDVMLog(); $logLinesMMDVM = getShortMMDVMLog();
$reverseLogLinesMMDVM = $logLinesMMDVM; $reverseLogLinesMMDVM = $logLinesMMDVM;