projects
/
irspy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use safe new $conn->check() instead of old private _check().
[irspy-moved-to-github.git]
/
web
/
htdocs
/
raw.html
diff --git
a/web/htdocs/raw.html
b/web/htdocs/raw.html
index
5a5f468
..
47bac0b
100644
(file)
--- a/
web/htdocs/raw.html
+++ b/
web/htdocs/raw.html
@@
-1,9
+1,12
@@
-%# $Id: raw.html,v 1.4 2006-11-16 11:48:40 mike Exp $
+%# $Id: raw.html,v 1.7 2007-01-24 09:28:02 mike Exp $
<%args>
$id
</%args>
<%args>
$id
</%args>
+<%once>
+use ZOOM;
+</%once>
<%perl>
<%perl>
-my $conn = new ZOOM::Connection("localhost:3313/IR-Explain---1");
+my $conn = new ZOOM::Connection("localhost:8018/IR-Explain---1");
$conn->option(elementSetName => "zeerex");
my $qid = $id;
$qid =~ s/"/\\"/g;
$conn->option(elementSetName => "zeerex");
my $qid = $id;
$qid =~ s/"/\\"/g;
@@
-14,8
+17,7
@@
if ($n == 0) {
$m->comp("/chrome/layout.mc", component => "/details/error.mc",
title => "Error", message => "No such ID '$id'");
} else {
$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;
}
$r->content_type("text/xml");
print $xml;
}