Changeset 24


Ignore:
Timestamp:
Apr 20, 2003, 6:15:10 PM (19 years ago)
Author:
Ivor Williams
Message:

Change to use external search script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wiki.cgi

    r23 r24  
    3838my $default_country = $config->{_}->{default_country};
    3939my $contact_email = $config->{_}->{contact_email};
    40 
     40my $search_url = $config->{_}->{search_url};
     41my $template_path = $config->{_}->{template_path};
    4142# Make store.
    4243my $store = CGI::Wiki::Store::Pg->new(
     
    5657my %macros = (
    5758    '@SEARCHBOX' =>
    58         qq(<form action="$script_name" method="get">
    59            <input type="hidden" name="action" value="search">
    60            <input type="text" size="20" name="terms">
    61            <input type="submit" name="Search" value="Search"></form>),
     59        qq(<form action="$search_url" method="get">
     60           <input type="text" size="20" name="search">
     61           <input type="submit" name="Go" value="Search"></form>),
    6262    qr/\@INDEX_LINK\s+\[\[Category\s+([^\]]+)\]\]/ =>
    6363        sub { return qq(<a href="$script_name?action=catindex&category=) . uri_escape($_[0]) . qq(">View all pages in Category $_[0]</a>)
     
    525525
    526526    my %tt_conf = ( %$conf,
    527                 INCLUDE_PATH => "/home/kake/public_html/cgi-bin/templates" );
     527                INCLUDE_PATH => $template_path );
    528528
    529529    # Create Template object, print CGI header, process template.
Note: See TracChangeset for help on using the changeset viewer.