addcomment.php, use version::objectMakeUrl()
This commit is contained in:
committed by
WineHQ
parent
ba3f966da4
commit
7825da1dc5
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user