forked from uup-dump/api
Ignore LXP only languages
This commit is contained in:
parent
767de7a1a5
commit
6d12dca6f3
@ -51,6 +51,8 @@ function uupListEditions($lang = 'en-us', $updateId = 0) {
|
||||
$editionList = array();
|
||||
$editionListFancy = array();
|
||||
foreach(array_keys($genPack[$lang]) as $edition) {
|
||||
if($edition == 'LXP') continue;
|
||||
|
||||
if(isset($fancyEditionNames[$edition])) {
|
||||
$fancyName = $fancyEditionNames[$edition];
|
||||
} else {
|
||||
|
@ -43,15 +43,19 @@ function uupListLangs($updateId = 0) {
|
||||
|
||||
$langList = array();
|
||||
$langListFancy = array();
|
||||
foreach(array_keys($genPack) as $val) {
|
||||
if(isset($fancyLangNames[$val])) {
|
||||
$fancyName = $fancyLangNames[$val];
|
||||
} else {
|
||||
$fancyName = $val;
|
||||
foreach($genPack as $key => $val) {
|
||||
if(!count(array_diff(array_keys($val), array('LXP')))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$langList[] = $val;
|
||||
$langListFancy[$val] = $fancyName;
|
||||
if(isset($fancyLangNames[$key])) {
|
||||
$fancyName = $fancyLangNames[$key];
|
||||
} else {
|
||||
$fancyName = $key;
|
||||
}
|
||||
|
||||
$langList[] = $key;
|
||||
$langListFancy[$key] = $fancyName;
|
||||
}
|
||||
|
||||
return array(
|
||||
|
@ -16,7 +16,7 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
function uupApiVersion() {
|
||||
return '1.20.0';
|
||||
return '1.20.1';
|
||||
}
|
||||
|
||||
require_once dirname(__FILE__).'/auths.php';
|
||||
|
Loading…
Reference in New Issue
Block a user