Add updateInfo to return value of uupListLangs

"Quality of life"
This commit is contained in:
awuctl 2020-07-22 07:57:05 +02:00 committed by GitHub
parent a702b2adee
commit bb1792bfe3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,9 +58,18 @@ function uupListLangs($updateId = 0) {
$langListFancy[$key] = $fancyName; $langListFancy[$key] = $fancyName;
} }
return array( if(isset($info)) {
'apiVersion' => uupApiVersion(), return array(
'langList' => $langList, 'apiVersion' => uupApiVersion(),
'langFancyNames' => $langListFancy, 'langList' => $langList,
); 'langFancyNames' => $langListFancy,
'updateInfo' => $info
);
} else {
return array(
'apiVersion' => uupApiVersion(),
'langList' => $langList,
'langFancyNames' => $langListFancy
);
}
} }