Add Appx presence check
This commit is contained in:
parent
42b1091c0b
commit
faa3b7fa45
@ -40,6 +40,7 @@ function uupListLangsInternal($updateId) {
|
|||||||
return [
|
return [
|
||||||
'langList' => $langList,
|
'langList' => $langList,
|
||||||
'langFancyNames' => $langListFancy,
|
'langFancyNames' => $langListFancy,
|
||||||
|
'appxPresent' => isset($genPack['neutral']['APP']),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -51,11 +52,10 @@ function uupListLangs($updateId = 0, $returnInfo = true) {
|
|||||||
|
|
||||||
$langList = uupListLangsInternal($updateId);
|
$langList = uupListLangsInternal($updateId);
|
||||||
|
|
||||||
$response = [
|
$response = array_merge(
|
||||||
'apiVersion' => uupApiVersion(),
|
['apiVersion' => uupApiVersion()],
|
||||||
'langList' => $langList['langList'],
|
$langList
|
||||||
'langFancyNames' => $langList['langFancyNames'],
|
);
|
||||||
];
|
|
||||||
|
|
||||||
if($returnInfo) $response['updateInfo'] = $info;
|
if($returnInfo) $response['updateInfo'] = $info;
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ limitations under the License.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function uupApiVersion() {
|
function uupApiVersion() {
|
||||||
return '1.45.0';
|
return '1.46.0';
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once dirname(__FILE__).'/auths.php';
|
require_once dirname(__FILE__).'/auths.php';
|
||||||
|
Loading…
Reference in New Issue
Block a user