X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/e64861a7760cfe34596e193a6a3ed2ef39b25892..7c9537015a7361681323e5a5ce2f10d9c0ee42d3:/widget/reply.php diff --git a/widget/reply.php b/widget/reply.php index 1f6d0e2..0935567 100644 --- a/widget/reply.php +++ b/widget/reply.php @@ -61,9 +61,8 @@ if ($_POST) { } } - if ($Page->api) { - abort("/{$Page->link}", '200 reply success'); - } + $target = "/{$Page->link}/$newcomment#$newcomment"; + abort($target, ($Page->api ? 200 : 303) . ' reply success'); $_POST['reply'] = NULL; } catch (Exception $e) { @@ -81,7 +80,7 @@ print '