Changeset 621 for trunk/wiki.cgi

Show
Ignore:
Timestamp:
01/29/05 02:08:30 (4 years ago)
Author:
dom
Message:

Use environment variable OPENGUIDES_CONFIG_FILE for config file location;
will be useful for mod_perl. Also add error checking to OpenGuides::Config
config file opening.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wiki.cgi

    r618 r621  
    2121use URI::Escape; 
    2222 
    23 my $config = OpenGuides::Config->new( file => "wiki.conf" ); 
     23my $config_file = $ENV{OPENGUIDES_CONFIG_FILE} || "wiki.conf"; 
     24my $config = OpenGuides::Config->new( file => $config_file ); 
    2425 
    2526my $script_name = $config->script_name;