aboutsummaryrefslogtreecommitdiff
path: root/t/post.t
diff options
context:
space:
mode:
Diffstat (limited to 't/post.t')
-rw-r--r--t/post.t10
1 files changed, 5 insertions, 5 deletions
diff --git a/t/post.t b/t/post.t
index 549b4ec..b1cbe99 100644
--- a/t/post.t
+++ b/t/post.t
@@ -13,16 +13,16 @@
<pre>
<%= post->text %>
</pre>
-<% if(attachment = getattachment(stmt, 0)){ %>
+<% if(att = nextatt(stmt)){ %>
<h3>Attachments</h3>
<table border="1">
<% do{ %>
<tr>
- <td><a href="?attachment=<% printf("%d", attachment->id); %>"><%= attachment->name %></a></td>
- <td><%= attachment->mime %></td>
- <td><%= attachment->description %></td>
+ <td><a href="?att=<% printf("%d", att->id); %>"><%= att->name %></a></td>
+ <td><%= att->mime %></td>
+ <td><%= att->description %></td>
</tr>
- <% }while(attachment = getattachment(stmt, 0)); %>
+ <% }while(att = nextatt(stmt)); %>
</table>
<% } %>
<% #include "foot.tc" %> \ No newline at end of file