It has long stopped being used, so it just clutters the code.
"406 requested format not available");
}
-my (%html_header, %page_content);
+my (%page_content);
unless (@Packages::CGI::fatal_errors) {
no strict 'refs';
- &{"do_$what_to_do"}( \%params, \%opts, \%html_header,
- \%page_content );
+ &{"do_$what_to_do"}( \%params, \%opts, \%page_content );
}
$page_content{opts} = \%opts;
unless (@Packages::CGI::fatal_errors) {
print $input->header(-charset => $charset, -type => get_mime($opts{format}) );
#use Data::Dumper;
- #print '<pre>'.Dumper(\%ENV, \%html_header, \%page_content, get_all_messages()).'</pre>';
+ #print '<pre>'.Dumper(\%ENV, \%page_content, get_all_messages()).'</pre>';
print $template->page( $what_to_do, { %page_content, %{ get_all_messages() } } );
my $tet1 = new Benchmark;
my $tetd = timediff($tet1, $tet0);
sub do_download {
- my ($params, $opts, $html_header, $page_content) = @_;
+ my ($params, $opts, $page_content) = @_;
if ($params->{errors}{package}) {
fatal_error( _g( "package not valid or not specified" ) );
our @EXPORT = qw( do_filelist );
sub do_filelist {
- my ($params, $opts, $html_header, $page_content) = @_;
+ my ($params, $opts, $page_content) = @_;
if ($params->{errors}{package}) {
fatal_error( _g( "package not valid or not specified" ) );
'txt.gz' => 'x-gzip',
);
sub send_file {
- my ($file, $params, $opts, $html_header) = @_;
+ my ($file, $params, $opts) = @_;
if ($params->{errors}{suite}) {
fatal_error( _g( "suite not valid or not specified" ) );
use Packages::Config qw( $TOPDIR @SECTIONS $ROOT );
sub do_newpkg {
- my ($params, $opts, $html_header, $page_content) = @_;
+ my ($params, $opts, $page_content) = @_;
if ($params->{errors}{suite}) {
fatal_error( _g( "suite not valid or not specified" ) );
use Packages::Config qw( $DBDIR @SUITES @ARCHIVES $ROOT );
sub do_search {
- my ($params, $opts, $html_header, $page_content) = @_;
+ my ($params, $opts, $page_content) = @_;
$Params::Search::too_many_hits = 0;
use Packages::Config qw( $DBDIR @SUITES @ARCHIVES @ARCHITECTURES $ROOT );
sub do_search_contents {
- my ($params, $opts, $html_header, $page_content) = @_;
+ my ($params, $opts, $page_content) = @_;
if ($params->{errors}{keywords}) {
fatal_error( _g( "keyword not valid or missing" ) );
our @EXPORT = qw( do_show );
sub do_show {
- my ($params, $opts, $html_header, $page_contents) = @_;
+ my ($params, $opts, $page_contents) = @_;
if ($params->{errors}{package}) {
fatal_error( _g( "package not valid or not specified" ) );