Reverted to 42e74d230d
This commit is contained in:
parent
42e74d230d
commit
a12349427d
2 changed files with 14 additions and 1 deletions
|
|
@ -670,6 +670,9 @@ get "/postActivity.xml":
|
|||
get "/t/@threadid/?@page?/?":
|
||||
createTFD()
|
||||
parseInt(@"threadid", c.threadId, -1..1000_000)
|
||||
if c.threadid == unselectedThread:
|
||||
# Thread has just beed deleted
|
||||
redirect(uri("/"))
|
||||
if @"page".len > 0:
|
||||
parseInt(@"page", c.pageNum, 0..1000_000)
|
||||
cond (c.pageNum > 0)
|
||||
|
|
@ -798,7 +801,7 @@ post "/doedit":
|
|||
createTFD()
|
||||
readIDs()
|
||||
if edit(c, c.postId):
|
||||
redirect(c.genThreadUrl())
|
||||
redirect(c.genThreadUrl(pageNum = $(c.getPagesInThread+1)) & "#" & $c.postId)
|
||||
else:
|
||||
body = ""
|
||||
handleError("doedit", "Edit", true)
|
||||
|
|
|
|||
10
main.tmpl
10
main.tmpl
|
|
@ -43,6 +43,16 @@
|
|||
${c.genActionMenu}
|
||||
</div>
|
||||
|
||||
<form method="get" action="http://www.google.com/search">
|
||||
<table align="right" cellpadding="5pt" cellspacing="5pt"><tr><td>
|
||||
<input type="text" name="q" size="25" maxlength="255" value="" />
|
||||
</td><td>
|
||||
<input type="submit" value="Google Search this forum" />
|
||||
<input type="hidden" name="sitesearch"
|
||||
value="http://forum.nimrod-lang.org" />
|
||||
</td></tr></table>
|
||||
</form>
|
||||
|
||||
<div id="content">
|
||||
$content
|
||||
<span style="color:red">$c.errorMsg</span>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue