]> git.etc.gen.nz Git - spong.git/commitdiff
defaulting $WWW_DEFAULT_VIEW to 'HOSTS' is value is not defined in spong.conf
authorStephen L Johnson <sjohnson@monsters.org>
Wed, 1 Mar 2000 22:07:34 +0000 (22:07 +0000)
committerStephen L Johnson <sjohnson@monsters.org>
Wed, 1 Mar 2000 22:07:34 +0000 (22:07 +0000)
src/www-spong.pl

index e41dc7b8f2e0445fd3a1b021efa75fca5f35a5a0..eb00efff2c0d608936a26582debf5b848d16272e 100755 (executable)
@@ -104,6 +104,7 @@ $cmd = $ENV{'PATH_INFO'};
 # These commands control the frame interface, etc...
 
 if( $cmd eq "" || $cmd eq "/" )   {
+   $main::SPONG_DEFAULT_VIEW = "HOST" unless $main::SPONG_DEFAULT_VIEW;
    &interactive( "all" ) if $main::SPONG_DEFAULT_VIEW eq "HOST";
    &ovinteractive( "all" ) if $main::SPONG_DEFAULT_VIEW eq "OVERVIEW";
    exit;