cleaning up PHP-Notices of old configs
This commit is contained in:
parent
b39624131c
commit
e2a2c5d306
3 changed files with 6 additions and 3 deletions
3
ajax.php
3
ajax.php
|
@ -7,7 +7,8 @@ include "include/tools.php";
|
||||||
include "include/functions.php";
|
include "include/functions.php";
|
||||||
|
|
||||||
$mmdvmconfigs = getMMDVMConfig();
|
$mmdvmconfigs = getMMDVMConfig();
|
||||||
define("MMDVMLOGPREFIX", getConfigItem("Log", "FileRoot", $mmdvmconfigs));
|
if (!defined("MMDVMLOGPREFIX"))
|
||||||
|
define("MMDVMLOGPREFIX", getConfigItem("Log", "FileRoot", $mmdvmconfigs));
|
||||||
$logLinesMMDVM = getMMDVMLog();
|
$logLinesMMDVM = getMMDVMLog();
|
||||||
$reverseLogLinesMMDVM = $logLinesMMDVM;
|
$reverseLogLinesMMDVM = $logLinesMMDVM;
|
||||||
array_multisort($reverseLogLinesMMDVM,SORT_DESC);
|
array_multisort($reverseLogLinesMMDVM,SORT_DESC);
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
<?php
|
<?php
|
||||||
//Some basic inits
|
//Some basic inits
|
||||||
$mmdvmconfigs = getMMDVMConfig();
|
$mmdvmconfigs = getMMDVMConfig();
|
||||||
define("MMDVMLOGPREFIX", getConfigItem("Log", "FileRoot", $mmdvmconfigs));
|
if (!defined("MMDVMLOGPREFIX"))
|
||||||
|
define("MMDVMLOGPREFIX", getConfigItem("Log", "FileRoot", $mmdvmconfigs));
|
||||||
echo MMDVMLOGPREFIX;
|
echo MMDVMLOGPREFIX;
|
||||||
$logLinesMMDVM = getMMDVMLog();
|
$logLinesMMDVM = getMMDVMLog();
|
||||||
showLapTime("getMMDVMLog");
|
showLapTime("getMMDVMLog");
|
||||||
|
|
|
@ -6,7 +6,8 @@ include "config/config.php";
|
||||||
include "include/tools.php";
|
include "include/tools.php";
|
||||||
include "include/functions.php";
|
include "include/functions.php";
|
||||||
$mmdvmconfigs = getMMDVMConfig();
|
$mmdvmconfigs = getMMDVMConfig();
|
||||||
define("MMDVMLOGPREFIX", getConfigItem("Log", "FileRoot", $mmdvmconfigs));
|
if (!defined("MMDVMLOGPREFIX"))
|
||||||
|
define("MMDVMLOGPREFIX", getConfigItem("Log", "FileRoot", $mmdvmconfigs));
|
||||||
$logLinesMMDVM = getShortMMDVMLog();
|
$logLinesMMDVM = getShortMMDVMLog();
|
||||||
$reverseLogLinesMMDVM = $logLinesMMDVM;
|
$reverseLogLinesMMDVM = $logLinesMMDVM;
|
||||||
array_multisort($reverseLogLinesMMDVM,SORT_DESC);
|
array_multisort($reverseLogLinesMMDVM,SORT_DESC);
|
||||||
|
|
Loading…
Reference in a new issue