mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-01-28 08:01:58 -05:00
Set to not ignore hdiden config, also commented out core and include config
as not used any more. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1922 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
@@ -1596,9 +1596,9 @@ sub INIT
|
||||
my $option_id = 0;
|
||||
foreach my $option ( @options )
|
||||
{
|
||||
next if ( $option->{category} eq 'core' );
|
||||
next if ( $option->{category} eq 'hidden' );
|
||||
next if ( $option->{type} == $types{include} );
|
||||
#next if ( $option->{category} eq 'core' );
|
||||
#next if ( $option->{category} eq 'hidden' );
|
||||
#next if ( $option->{type} == $types{include} );
|
||||
$option->{id} = $option_id++;
|
||||
}
|
||||
}
|
||||
@@ -1627,8 +1627,8 @@ sub loadConfigFromDB
|
||||
warn( "No option '$name' found, removing" );
|
||||
next;
|
||||
}
|
||||
next if ( $option->{category} eq 'core' );
|
||||
next if ( $option->{category} eq 'hidden' );
|
||||
#next if ( $option->{category} eq 'core' );
|
||||
#next if ( $option->{category} eq 'hidden' );
|
||||
if ( defined($value) )
|
||||
{
|
||||
if ( $name eq "ZM_OPT_MPEG" && $value eq "yes" )
|
||||
@@ -1667,9 +1667,9 @@ sub saveConfigToDB
|
||||
my $sth = $dbh->prepare_cached( $sql ) or croak( "Can't prepare '$sql': ".$dbh->errstr() );
|
||||
foreach my $option ( @options )
|
||||
{
|
||||
next if ( $option->{category} eq 'core' );
|
||||
next if ( $option->{category} eq 'hidden' );
|
||||
next if ( $option->{type} == $types{include} );
|
||||
#next if ( $option->{category} eq 'core' );
|
||||
#next if ( $option->{category} eq 'hidden' );
|
||||
#next if ( $option->{type} == $types{include} );
|
||||
#print( $option->{name}."\n" ) if ( !$option->{category} );
|
||||
$option->{db_type} = $option->{type}->{db_type};
|
||||
$option->{db_hint} = $option->{type}->{hint};
|
||||
|
||||
Reference in New Issue
Block a user