From: Mike Taylor Date: Thu, 16 Nov 2006 17:05:51 +0000 (+0000) Subject: Simplify, eliminate temporary. X-Git-Tag: CPAN-v1.02~780 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=853a990e88dc9c2592c06cf8573e0b45eed89072;p=irspy-moved-to-github.git Simplify, eliminate temporary. --- diff --git a/web/htdocs/raw.html b/web/htdocs/raw.html index 5a5f468..8b99df5 100644 --- a/web/htdocs/raw.html +++ b/web/htdocs/raw.html @@ -1,4 +1,4 @@ -%# $Id: raw.html,v 1.4 2006-11-16 11:48:40 mike Exp $ +%# $Id: raw.html,v 1.5 2006-11-16 17:05:51 mike Exp $ <%args> $id @@ -14,8 +14,7 @@ if ($n == 0) { $m->comp("/chrome/layout.mc", component => "/details/error.mc", title => "Error", message => "No such ID '$id'"); } else { - my $rec = $rs->record(0); - my $xml = $rec->render(); + my $xml = $rs->record(0)->render(); $r->content_type("text/xml"); print $xml; }