mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-25 18:59:12 +02:00
Fixed BUGID 369, defaultviewID was overwritten with hardcoded default
This commit is contained in:
parent
3f99856430
commit
61d66a8543
@ -152,7 +152,7 @@ function GetFileLength($szFileName)
|
|||||||
function InitPhpLogCon()
|
function InitPhpLogCon()
|
||||||
{
|
{
|
||||||
// Needed to make global
|
// Needed to make global
|
||||||
global $gl_root_path, $content;
|
global $gl_root_path, $content, $CFG;
|
||||||
|
|
||||||
// Abort if already defined
|
// Abort if already defined
|
||||||
if ( defined('PHPLOGCON_INITIALIZED') )
|
if ( defined('PHPLOGCON_INITIALIZED') )
|
||||||
@ -885,6 +885,8 @@ function InitConfigurationValues()
|
|||||||
|
|
||||||
// Load Configured Sources
|
// Load Configured Sources
|
||||||
LoadSourcesFromDatabase();
|
LoadSourcesFromDatabase();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -546,7 +546,8 @@ function InitViewConfigs()
|
|||||||
'groupid' => null,
|
'groupid' => null,
|
||||||
);
|
);
|
||||||
|
|
||||||
// Set default of 'DefaultViewsID'
|
// Set default of 'DefaultViewsID' only if not set already!
|
||||||
|
if ( !isset($CFG['DefaultViewsID']) )
|
||||||
$CFG['DefaultViewsID'] = "SYSLOG";
|
$CFG['DefaultViewsID'] = "SYSLOG";
|
||||||
|
|
||||||
// Loop through views now and copy into content array!
|
// Loop through views now and copy into content array!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user