addcomment.php, use version::objectMakeUrl()

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-04-09 01:23:11 +00:00
committed by WineHQ
parent ba3f966da4
commit 7825da1dc5

View File

@@ -29,7 +29,8 @@ if(!empty($aClean['sBody']))
{
$oComment = new Comment();
$oComment->create($aClean['sSubject'], $aClean['sBody'], $aClean['iThread'], $aClean['iVersionId']);
util_redirect_and_exit(apidb_fullurl("appview.php?iVersionId=".$oComment->iVersionId));
$oVersion = new version($oComment->iVersionId);
util_redirect_and_exit($oVersion->objectMakeUrl());
// let's show the comment form
} else
{