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
@@ -51,6 +51,25 @@ class appData
|
||||
|
||||
return $sReturn;
|
||||
}
|
||||
|
||||
/* Get appData for a given version/application, optionally filter by type */
|
||||
function getData($iId, $sType, $bIsVersion = TRUE)
|
||||
{
|
||||
$iAppId = 0;
|
||||
$iVersionId = 0;
|
||||
|
||||
if($bIsVersion)
|
||||
$iVersionId = $iId;
|
||||
else
|
||||
$iAppId = $iId;
|
||||
|
||||
$hResult = query_parameters("SELECT * FROM appData WHERE appId = '?' AND versionId = '?' AND TYPE = '?'", $iAppId, $iVersionId, $sType);
|
||||
|
||||
if(!$hResult || !mysql_num_rows($hResult))
|
||||
return FALSE;
|
||||
|
||||
return $hResult;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user