Changeset 86 for trunk/uribl/uridb.cgi


Ignore:
Timestamp:
09/11/25 17:57:24 (5 days ago)
Author:
Kris Deugau
Message:

/trunk/uribl

Move the %config blurb inside the module so it's not splattered across all
the scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/uribl/uridb.cgi

    r80 r86  
    7474$ENV{HTML_TEMPLATE_ROOT} = $templatedir;
    7575
    76 my %config;
    77 my $sth = $dbh->prepare("SELECT key,value FROM misc");
    78 $sth->execute;
    79 while (my ($key,$value) = $sth->fetchrow_array) {
    80   $config{$key} = $value;
    81 }
    82 
    8376# decide which page to spit out...
    8477if (!$webvar{page}) {
     
    8881}
    8982
    90 $page->param(pgtitle => $config{pgtitle}) if defined($config{pgtitle});
    91 $page->param(pgcomment => $config{pgcomment}) if defined($config{pgcomment});
     83$page->param(pgtitle => $uridb->{cfg}{pgtitle}) if defined($uridb->{cfg}{pgtitle});
     84$page->param(pgcomment => $uridb->{cfg}{pgcomment}) if defined($uridb->{cfg}{pgcomment});
    9285$page->param(cgiself => $cgiself);
    9386
Note: See TracChangeset for help on using the changeset viewer.