Fixed "Return" links in threads

This commit is contained in:
Savetheinternet 2010-12-16 21:43:01 +11:00
parent a896abbd66
commit db50d07681
2 changed files with 3 additions and 2 deletions

View File

@ -361,7 +361,8 @@
'post_url' => POST_URL, 'post_url' => POST_URL,
'index' => ROOT, 'index' => ROOT,
'id' => $id, 'id' => $id,
'mod' => $mod 'mod' => $mod,
'return' => ($mod ? '?' . $board['url'] . FILE_INDEX : ROOT . $board['uri'] . '/' . FILE_INDEX)
)); ));
if($return) if($return)

View File

@ -12,7 +12,7 @@
<h1>{board[url]} - {board[name]}</h1> <h1>{board[url]} - {board[name]}</h1>
<div class="title">{board[title]?{board[title]}}<p>{mod?<a href="?/">Return to dashboard</a>}</p></div> <div class="title">{board[title]?{board[title]}}<p>{mod?<a href="?/">Return to dashboard</a>}</p></div>
<div class="banner">Posting mode: Reply <a class="unimportant" href="{index}{board[dir]}">[Return.]</a></div> <div class="banner">Posting mode: Reply <a class="unimportant" href="{return}">[Return.]</a></div>
<form onsubmit="return dopost(this);" enctype="multipart/form-data" action="{post_url}" method="post"> <form onsubmit="return dopost(this);" enctype="multipart/form-data" action="{post_url}" method="post">
<input type="hidden" name="thread" value="{id}" /> <input type="hidden" name="thread" value="{id}" />
<input type="hidden" name="board" value="{board[uri]}" /> <input type="hidden" name="board" value="{board[uri]}" />