Don't show comment form when comments are disabled

This commit is contained in:
Stefan Ritter 2009-10-31 00:33:19 +01:00
parent a8f13c725e
commit 50f6f862f6

View File

@ -485,6 +485,7 @@ else:
print ' <div class="comments">'
# Form for adding comments
if comments == "True":
random_int_a = random.randint(1,9)
random_int_b = random.randint(1,9)
cquizv = random_int_a + random_int_b
@ -498,6 +499,7 @@ else:
print ' <br /><input class="submit_comment_button" type="submit" id="submit" value="post comment" />'
print ' </form>'
print ' </div>'
else:
print ' <div class="submit_border_bottom"></div>'
print ''