Reverted back some risky changes.

This commit is contained in:
Dominik Picheta 2013-03-27 23:44:57 +00:00
commit f9fa9b4503
2 changed files with 4 additions and 5 deletions

View file

@ -1,11 +1,12 @@
nimforum
========
This is Nimrod's forum. The code is not nice and depends on the RST parser of
the Nimrod compiler.
This is Nimrod's forum. The code depends on the RST parser of
the Nimrod compiler and on Jester.
Copyright (c) 2012 Andreas Rumpf, Dominik Picheta.
Copyright (c) 2012-2013 Andreas Rumpf, Dominik Picheta.
All rights reserved.
# License

View file

@ -665,7 +665,6 @@ get "/t/@threadid/?@page?/?":
if @"page".len > 0:
parseInt(@"page", c.pageNum, 0..1000_000)
cond (c.pageNum > 0)
if c.pageNum == 1: redirect(uri("/t/" & $c.threadId))
if (@"postid").len > 0:
parseInt(@"postid", c.postId, -1..1000_000)
var count = 0
@ -703,7 +702,6 @@ get "/page/@page/?":
cond (@"page" != "")
parseInt(@"page", c.pageNum, 0..1000_000)
cond (c.pageNum > 0)
if c.pageNum == 1: redirect(uri("/"))
var count = 0
let list = genThreadsList(c, count)
if count == 0: