diff options
author | Graham Eames <grahamje@users.sourceforge.net> | 2006-07-23 20:59:08 +0000 |
---|---|---|
committer | Graham Eames <grahamje@users.sourceforge.net> | 2006-07-23 20:59:08 +0000 |
commit | 4680dfce39f98f9953dea493af8c2245e0570649 (patch) | |
tree | eb5d6dc3bc058314cc0da9995779623b8d5f9039 /phpBB/includes/mcp/mcp_warn.php | |
parent | 5e7f9e1a0d07df18f3cb330ad48901bf5a2941db (diff) | |
download | forums-4680dfce39f98f9953dea493af8c2245e0570649.tar forums-4680dfce39f98f9953dea493af8c2245e0570649.tar.gz forums-4680dfce39f98f9953dea493af8c2245e0570649.tar.bz2 forums-4680dfce39f98f9953dea493af8c2245e0570649.tar.xz forums-4680dfce39f98f9953dea493af8c2245e0570649.zip |
Include a link to the post by default when issuing a warning
git-svn-id: file:///svn/phpbb/trunk@6203 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/mcp/mcp_warn.php')
-rwxr-xr-x | phpBB/includes/mcp/mcp_warn.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/includes/mcp/mcp_warn.php b/phpBB/includes/mcp/mcp_warn.php index a83fa30211..87ed6e93c8 100755 --- a/phpBB/includes/mcp/mcp_warn.php +++ b/phpBB/includes/mcp/mcp_warn.php @@ -188,6 +188,7 @@ function mcp_warn_post_view($id, $mode, $action) global $template, $db, $user, $auth; $post_id = request_var('p', 0); + $forum_id = request_var('f', 0); $notify = (isset($_REQUEST['notify_user'])) ? true : false; $warning = request_var('warning', '', true); @@ -296,6 +297,8 @@ function mcp_warn_post_view($id, $mode, $action) 'AVATAR_IMG' => $avatar_img, 'RANK_IMG' => $rank_img, + + 'L_WARNING_POST_DEFAULT' => sprintf($user->lang['WARNING_POST_DEFAULT'], generate_board_url() . "/viewtopic.$phpEx?f=$forum_id&p=$post_id"), ) ); } |