From f05de802541ec00186a7f481735dfd52d8427bf3 Mon Sep 17 00:00:00 2001 From: stan Date: Fri, 7 Apr 2006 13:55:55 +0000 Subject: [PATCH] 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 --- .../ZoneMinder/lib/ZoneMinder/ConfigAdmin.pm.in | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/ZoneMinder/lib/ZoneMinder/ConfigAdmin.pm.in b/scripts/ZoneMinder/lib/ZoneMinder/ConfigAdmin.pm.in index dab1b815b..63cb370db 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/ConfigAdmin.pm.in +++ b/scripts/ZoneMinder/lib/ZoneMinder/ConfigAdmin.pm.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};