Add the ability to add download URLs to application versions. They are
displayed in the version view marked as 'free downloads'. The links will later be used to allow browsing of downloadable applications.
This commit is contained in:
committed by
WineHQ
parent
9f88239d1f
commit
52a155588c
@@ -16,6 +16,7 @@ if(!$_SESSION['current']->hasPriv("admin") && !$_SESSION['current']->isMaintaine
|
||||
if(!empty($aClean['sSubmit']))
|
||||
{
|
||||
process_app_version_changes(true);
|
||||
downloadurl::processForm($_REQUEST);
|
||||
util_redirect_and_exit(apidb_fullurl("appview.php?iVersionId=".$aClean['iVersionId']));
|
||||
} else /* or display the webform for making changes */
|
||||
{
|
||||
@@ -85,6 +86,9 @@ if(!empty($aClean['sSubmit']))
|
||||
echo html_frame_end();
|
||||
echo "</form>";
|
||||
|
||||
/* Download URL editor */
|
||||
echo downloadurl::editor($oVersion, "editAppVersion.php");
|
||||
|
||||
/* only admins can move versions */
|
||||
if($_SESSION['current']->hasPriv("admin"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user