forked from uup-dump/api
Add 17634 pack template, add reporting of build to get.php responses
This commit is contained in:
3
get.php
3
get.php
@ -124,7 +124,9 @@ function uupGetFiles($updateId = 'c2a1d787-647b-486d-b264-f90f3782cdc6', $usePac
|
||||
}
|
||||
|
||||
$updateArch = (isset($info['arch'])) ? $info['arch'] : 'UNKNOWN';
|
||||
$updateBuild = (isset($info['build'])) ? $info['build'] : 'UNKNOWN';
|
||||
$updateName = (isset($info['title'])) ? $info['title'] : 'Unknown update: '.$updateId;
|
||||
|
||||
$info = $info['files'];
|
||||
$out = preg_replace('/<FileLocation>|<\/FileLocation>/', '', $out[0]);
|
||||
|
||||
@ -317,6 +319,7 @@ function uupGetFiles($updateId = 'c2a1d787-647b-486d-b264-f90f3782cdc6', $usePac
|
||||
'apiVersion' => uupApiVersion(),
|
||||
'updateName' => $updateName,
|
||||
'arch' => $updateArch,
|
||||
'build' => $updateBuild,
|
||||
'files' => $files,
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user