--- Webpacus/lib/Webpacus/Controller/Editor.pm 2005/12/14 18:56:11 241 +++ Webpacus/lib/Webpacus/Controller/Editor.pm 2005/12/14 18:56:17 242 @@ -156,11 +156,11 @@ $c->log->debug('record params '.Dumper($c->req->params)); - my $mfn = $c->req->params->{mfn}; + my $record_uri = $c->req->params->{record_uri}; - if (! $mfn) { - $c->log->warn("no mfn, using 1"); - $mfn = 1; + if (! $record_uri) { + $c->log->fatal("no record_uri"); + return; } my $template_filename = $c->req->params->{template_filename}; @@ -171,7 +171,7 @@ my $webpac = $c->comp('Model::WebPAC'); - my $html = $webpac->record( mfn => $mfn, template => $template_filename ); + my $html = $webpac->record( record_uri => $record_uri, template => $template_filename ); if ($html) { $c->log->debug('check html with tidy'); @@ -216,8 +216,7 @@ } else { $html .= qq{
Can't find record
}; } - - + $c->response->content_type('text/html; charset=utf-8'); $c->response->body( $html ); }