[Oi-commits] r1321 - trunk/templates/forum

oi-commits at pardus.org.tr oi-commits at pardus.org.tr
Thu May 1 15:26:21 EEST 2008


Author: erenturkay
Date: Thu May  1 15:26:21 2008
New Revision: 1321

Modified:
   trunk/templates/forum/reply.html
Log:
well, if we don't control quote_id, after posting normal reply, we get 404

Modified: trunk/templates/forum/reply.html
=================================================================
--- trunk/templates/forum/reply.html	(original)
+++ trunk/templates/forum/reply.html	Thu May  1 15:26:21 2008
@@ -10,7 +10,7 @@
 {% if user.is_authenticated %}
 {% if flood %}Flood koruması aktif, lütfen {{ timeout }} saniye bekleyin.{% endif %}
 <form action="" method="post">
-    <input type="hidden" name="quote_id" value="{{ quote_id }}" />
+{% if quote_id %}<input type="hidden" name="quote_id" value="{{ quote_id }}" />{% endif %}
 {% for field in form %}
     <dl>
         <dt><label for="{{ field.name }}">{{ field.label }}</label>{% if field.help_text %}<br /><span>{{ field.help_text }}</span>{% endif %}{% if field.errors %}<br /><span class="error">{{ field.errors }}</span>{% endif %}</dt>


More information about the Oi-commits mailing list