forked from uup-dump/api
Add updateInfo to return value of uupListLangs
"Quality of life"
This commit is contained in:
parent
a702b2adee
commit
bb1792bfe3
@ -57,10 +57,19 @@ function uupListLangs($updateId = 0) {
|
||||
$langList[] = $key;
|
||||
$langListFancy[$key] = $fancyName;
|
||||
}
|
||||
|
||||
return array(
|
||||
'apiVersion' => uupApiVersion(),
|
||||
'langList' => $langList,
|
||||
'langFancyNames' => $langListFancy,
|
||||
);
|
||||
|
||||
if(isset($info)) {
|
||||
return array(
|
||||
'apiVersion' => uupApiVersion(),
|
||||
'langList' => $langList,
|
||||
'langFancyNames' => $langListFancy,
|
||||
'updateInfo' => $info
|
||||
);
|
||||
} else {
|
||||
return array(
|
||||
'apiVersion' => uupApiVersion(),
|
||||
'langList' => $langList,
|
||||
'langFancyNames' => $langListFancy
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user