Reverted back some risky changes.
This commit is contained in:
parent
82cc25bd62
commit
f9fa9b4503
2 changed files with 4 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue