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,7 +7,8 @@ include "include/tools.php";
include "include/functions.php";
$mmdvmconfigs = getMMDVMConfig();
define("MMDVMLOGPREFIX", getConfigItem("Log", "FileRoot", $mmdvmconfigs));
if (!defined("MMDVMLOGPREFIX"))
define("MMDVMLOGPREFIX", getConfigItem("Log", "FileRoot", $mmdvmconfigs));
$logLinesMMDVM = getMMDVMLog();
$reverseLogLinesMMDVM = $logLinesMMDVM;
array_multisort($reverseLogLinesMMDVM,SORT_DESC);

View file

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

View file

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