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

    r620 r621  
    88use OpenGuides::SuperSearch;
    99
    10 my $config = OpenGuides::Config->new( file => "wiki.conf" );
     10my $config_file = $ENV{OPENGUIDES_CONFIG_FILE} || "wiki.conf";
     11my $config = OpenGuides::Config->new( file => $config_file );
    1112my $search = OpenGuides::SuperSearch->new( config => $config );
    1213my %vars = CGI::Vars();
Note: See TracChangeset for help on using the changeset viewer.