Changeset 621 for trunk/wiki.cgi


Ignore:
Timestamp:
Jan 29, 2005, 2:08:30 AM (17 years ago)
Author:
Dominic Hargreaves
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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wiki.cgi

    r620 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;
Note: See TracChangeset for help on using the changeset viewer.