summaryrefslogtreecommitdiff
path: root/mod.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@tinyboard.org>2011-10-16 21:57:32 +1100
committerSavetheinternet <savetheinternet@tinyboard.org>2011-10-16 21:57:32 +1100
commit033baf06c28d0860826b0ef1ce97cc2ca4355af3 (patch)
tree4f6984b0779569a9bd9d5ccb94c03901d6efb94e /mod.php
parent74fa468285abaf73e973618b32e831db54193f32 (diff)
/reports should oben config[mod][show_ip]
Diffstat (limited to 'mod.php')
-rw-r--r--mod.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/mod.php b/mod.php
index 15deecf0..26869aa0 100644
--- a/mod.php
+++ b/mod.php
@@ -1329,7 +1329,9 @@
'Board: <a href="?/' . $report['uri'] . '/' . $config['file_index'] . '">' . sprintf($config['board_abbreviation'], $report['uri']) . '</a><br/>' .
'Reason: ' . $report['reason'] . '<br/>' .
'Report date: ' . date($config['post_date'], $report['time']) . '<br/>' .
- 'Reported by: <a href="?/IP/' . $report['ip'] . '">' . $report['ip'] . '</a><br/>' .
+ (hasPermission($config['mod']['show_ip']) ?
+ 'Reported by: <a href="?/IP/' . $report['ip'] . '">' . $report['ip'] . '</a><br/>'
+ : '') .
'<hr/>' .
(hasPermission($config['mod']['report_dismiss']) ?
'<a title="Discard abuse report" href="?/reports/' . $report['id'] . '/dismiss">Dismiss</a> | ' : '') .