Permalink
Browse files

#743: Append pid to redirect_url when using email link in a post.

  • Loading branch information...
1 parent 8021fdf commit 0011b80b7c6c3c38bf65cb1d9190454e8db2c9a5 @Quy Quy committed Oct 10, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 misc.php
View
@@ -164,6 +164,8 @@
if (!isset($redirect_url))
$redirect_url = 'profile.php?id='.$recipient_id;
+ else if (preg_match('%viewtopic\.php\?pid=(\d+)$%', $redirect_url, $matches))
+ $redirect_url .= '#p'.$matches[1];
$page_title = array(pun_htmlspecialchars($pun_config['o_board_title']), $lang_misc['Send email to'].' '.pun_htmlspecialchars($recipient));
$required_fields = array('req_subject' => $lang_misc['Email subject'], 'req_message' => $lang_misc['Email message']);

0 comments on commit 0011b80

Please sign in to comment.