From 6d12dca6f3c467ec88db157002b1c531bba677aa Mon Sep 17 00:00:00 2001 From: mkuba50 Date: Sun, 17 Feb 2019 18:39:18 +0100 Subject: [PATCH] Ignore LXP only languages --- listeditions.php | 2 ++ listlangs.php | 18 +++++++++++------- shared/main.php | 2 +- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/listeditions.php b/listeditions.php index 6ccf975..ee6d446 100644 --- a/listeditions.php +++ b/listeditions.php @@ -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 { diff --git a/listlangs.php b/listlangs.php index 60bb23a..a30eafb 100644 --- a/listlangs.php +++ b/listlangs.php @@ -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( diff --git a/shared/main.php b/shared/main.php index 66c05f6..d7a58cf 100644 --- a/shared/main.php +++ b/shared/main.php @@ -16,7 +16,7 @@ limitations under the License. */ function uupApiVersion() { - return '1.20.0'; + return '1.20.1'; } require_once dirname(__FILE__).'/auths.php';