Fixed "Return" links in threads
This commit is contained in:
parent
a896abbd66
commit
db50d07681
@ -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)
|
||||||
|
@ -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]}" />
|
||||||
|
Loading…
Reference in New Issue
Block a user