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