Skip to content

Commit

Permalink
Changed to returning to previous level at comment reply. bugid:106025
Browse files Browse the repository at this point in the history
  • Loading branch information
yuji committed Apr 11, 2011
1 parent 790400a commit 4f1de20
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions lib/MT/CMS/Comment.pm
Expand Up @@ -743,14 +743,17 @@ sub dialog_post_comment {
comment_text => MT::Sanitize->sanitize( $parent->text, $spec ),
comment_script_url => $app->config('CGIPath')
. $app->config('CommentScript'),
return_url => $app->base
. $app->uri(
mode => 'list',
args => {
'_type' => 'comment',
blog_id => $blog->id,
}
),
return_url => ( $app->param('return_args')
? $app->base . $app->uri . $app->param('return_args')
: $app->base
. $app->uri(
mode => 'list',
args => {
'_type' => 'comment',
blog_id => $blog->id,
}
)
),
};

$app->load_tmpl( 'dialog/comment_reply.tmpl', $param );
Expand Down

0 comments on commit 4f1de20

Please sign in to comment.