]> ruin.nu Git - ndwebbie.git/blobdiff - ND/Web/XMLPage.pm
connection to db is done in handler, so should do potential rollback and disconnect...
[ndwebbie.git] / ND / Web / XMLPage.pm
index c040c76c671d2a06f605e470f068c44b2ff7314a..561fdc8f608c9535c91219eb13239916ca76ce56 100644 (file)
@@ -27,7 +27,7 @@ use ND::Include;
 use ND::Web::Page;
 use ND::Web::Include;
 
-our @ISA = qw/ND::Web::Page/;
+use base qw/ND::Web::Page/;
 
 sub noAccess () {
        HTML::Template->new(filename => 'templates/NoAccess.tmpl', global_vars => 1, cache => 1);
@@ -125,11 +125,6 @@ sub render : method {
        my $output = $template->output;
        print header(-type=> $type, -charset => 'utf-8', -Content_Length => length $output);
        print $output;
-
-
-       $DBH->rollback unless $DBH->{AutoCommit};
-       $DBH->disconnect;
-
 };
 
 1;