From 840fd004a77e4b377753f8c347d0994bba3547ba Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Thu, 16 Nov 2006 17:05:51 +0000 Subject: [PATCH] Simplify, eliminate temporary. --- web/htdocs/raw.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; } -- 1.7.10.4