Skip to content

Commit

Permalink
[issue/84] Add a return link when deleting comments/post
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinny committed Apr 12, 2012
1 parent cbd1048 commit 8c72b49
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions phpBB-Blog/root/blog.php
Expand Up @@ -535,7 +535,9 @@
if(confirm_box(true))
{
blog::delete_blog($blog_id);
trigger_error($user->lang['GENERIC_SUCCESS']);
$u_action = append_sid("{$phpbb_root_path}blog.$phpEx");
meta_refresh('3', $u_action);
trigger_error($user->lang['GENERIC_SUCCESS'] . '<BR /><BR /><a href="' . $u_action . '">' . $user->lang['RETURN'] . '</a>');
}
else
{
Expand Down Expand Up @@ -619,7 +621,9 @@
if (confirm_box(true))
{
blog::delete_cmnt($cid, $blog_id);
trigger_error($user->lang['GENERIC_SUCCESS']);
$u_action = append_sid("{$phpbb_root_path}blog.$phpEx", array($act_name => 'view', 'id' => $blog_id));
meta_refresh('3', $u_action);
trigger_error($user->lang['GENERIC_SUCCESS'] . '<BR /><BR /><a href="' . $u_action . '">' . $user->lang['RETURN'] . '</a>');
}
else
{
Expand Down

0 comments on commit 8c72b49

Please sign in to comment.