aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrxu <rxu@mail.ru>2017-08-17 00:45:28 +0700
committerrxu <rxu@mail.ru>2017-08-17 00:45:28 +0700
commit79093c11459d0a95116b1d6f6c3cf70084f099ea (patch)
tree68fa0b3a85ea7ac272c4b0eb936452f15ec8f457
parent1e605efaf126f5474bb1be99e7fdaed834ebb2a0 (diff)
downloadforums-79093c11459d0a95116b1d6f6c3cf70084f099ea.tar
forums-79093c11459d0a95116b1d6f6c3cf70084f099ea.tar.gz
forums-79093c11459d0a95116b1d6f6c3cf70084f099ea.tar.bz2
forums-79093c11459d0a95116b1d6f6c3cf70084f099ea.tar.xz
forums-79093c11459d0a95116b1d6f6c3cf70084f099ea.zip
[ticket/15327] Add post anchor to the log postlink
PHPBB3-15327
-rw-r--r--phpBB/phpbb/log/log.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/log/log.php b/phpBB/phpbb/log/log.php
index cf3db365a4..5aad7ee326 100644
--- a/phpBB/phpbb/log/log.php
+++ b/phpBB/phpbb/log/log.php
@@ -747,7 +747,7 @@ class log implements \phpbb\log\log_interface
foreach ($log as $key => $row)
{
$log[$key]['viewtopic'] = (isset($topic_auth['f_read'][$row['topic_id']])) ? append_sid("{$this->phpbb_root_path}viewtopic.{$this->php_ext}", 'f=' . $topic_auth['f_read'][$row['topic_id']] . '&amp;t=' . $row['topic_id']) : false;
- $log[$key]['viewpost'] = (isset($topic_auth['f_read'][$row['topic_id']]) && $row['post_id']) ? append_sid("{$this->phpbb_root_path}viewtopic.{$this->php_ext}", 'f=' . $topic_auth['f_read'][$row['topic_id']] . '&amp;t=' . $row['topic_id'] . '&amp;p=' . $row['post_id']) : false;
+ $log[$key]['viewpost'] = (isset($topic_auth['f_read'][$row['topic_id']]) && $row['post_id']) ? append_sid("{$this->phpbb_root_path}viewtopic.{$this->php_ext}", 'f=' . $topic_auth['f_read'][$row['topic_id']] . '&amp;t=' . $row['topic_id'] . '&amp;p=' . $row['post_id'] . '#p' . $row['post_id']) : false;
$log[$key]['viewlogs'] = (isset($topic_auth['m_'][$row['topic_id']])) ? append_sid("{$this->phpbb_root_path}mcp.{$this->php_ext}", 'i=logs&amp;mode=topic_logs&amp;t=' . $row['topic_id'], true, $this->user->session_id) : false;
}
}