X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=ND%2FWeb%2FXMLPage.pm;h=ccdb7c511a07897dbf5777ba78b2ecc8da6475a2;hb=a0338ef8c49837940c009341b135fd038d8acf7a;hp=561fdc8f608c9535c91219eb13239916ca76ce56;hpb=a5ecd18d276ae1a43b92d96e2347a077a1a52427;p=ndwebbie.git diff --git a/ND/Web/XMLPage.pm b/ND/Web/XMLPage.pm index 561fdc8..ccdb7c5 100644 --- a/ND/Web/XMLPage.pm +++ b/ND/Web/XMLPage.pm @@ -80,6 +80,9 @@ sub render : method { $self->process; my $type = 'text/html'; + if ($self->{HTTP_ACCEPT} =~ m{application/xhtml\+xml}){ + $type = 'application/xhtml+xml' + } my $body; if ($self->{XML}){ $type = 'text/xml'; @@ -118,7 +121,6 @@ sub render : method { my ($css) = $DBH->selectrow_array(q{SELECT css FROM users WHERE uid = $1},undef,$ND::UID); $template->param(CSS => $css); $template->param(TITLE => $self->{TITLE}); - } $template->param(Error => $ND::ERROR); $template->param(BODY => $body->output);