Display report link next to reference link
This commit is contained in:
parent
b225fc00a1
commit
b28709f301
16
inc/html.php
16
inc/html.php
|
@ -346,10 +346,16 @@ function buildPost($post, $res) {
|
|||
$return = "";
|
||||
$threadid = ($post['parent'] == TINYIB_NEWTHREAD) ? $post['id'] : $post['parent'];
|
||||
|
||||
if ($res == TINYIB_RESPAGE) {
|
||||
$reflink = "<a href=\"$threadid.html#{$post['id']}\">No.</a><a href=\"$threadid.html#q{$post['id']}\" onclick=\"javascript:quotePost('{$post['id']}')\">{$post['id']}</a>";
|
||||
if (TINYIB_REPORT) {
|
||||
$reflink = '<a href="imgboard.php?report=' . $post['id'] . '" title="' . __('Report') . '">R</a> ';
|
||||
} else {
|
||||
$reflink = "<a href=\"res/$threadid.html#{$post['id']}\">No.</a><a href=\"res/$threadid.html#q{$post['id']}\">{$post['id']}</a>";
|
||||
$reflink = '';
|
||||
}
|
||||
|
||||
if ($res == TINYIB_RESPAGE) {
|
||||
$reflink .= "<a href=\"$threadid.html#{$post['id']}\">No.</a><a href=\"$threadid.html#q{$post['id']}\" onclick=\"javascript:quotePost('{$post['id']}')\">{$post['id']}</a>";
|
||||
} else {
|
||||
$reflink .= "<a href=\"res/$threadid.html#{$post['id']}\">No.</a><a href=\"res/$threadid.html#q{$post['id']}\">{$post['id']}</a>";
|
||||
}
|
||||
|
||||
if ($post["stickied"] == 1) {
|
||||
|
@ -466,10 +472,6 @@ EOF;
|
|||
$return .= $filehtml;
|
||||
}
|
||||
|
||||
if (TINYIB_REPORT) {
|
||||
$return .= " [<a href=\"imgboard.php?report=${post["id"]}\">" . __("Report") . "</a>]";
|
||||
}
|
||||
|
||||
if ($post['parent'] == TINYIB_NEWTHREAD && $res == TINYIB_INDEXPAGE) {
|
||||
$return .= " [<a href=\"res/${post["id"]}.html\">" . __("Reply") . "</a>]";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue