Changeset 621 for trunk/newpage.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/newpage.cgi

    r620 r621  
    1414
    1515my $q = CGI->new;
    16 my $config = OpenGuides::Config->new( file => "wiki.conf" );
     16my $config_file = $ENV{OPENGUIDES_CONFIG_FILE} || "wiki.conf";
     17my $config = OpenGuides::Config->new( file => $config_file );
    1718my $wiki = OpenGuides::Utils->make_wiki_object( config => $config );
    1819
Note: See TracChangeset for help on using the changeset viewer.