Ignore LXP only languages

This commit is contained in:
mkuba50 2019-02-17 18:39:18 +01:00
parent 767de7a1a5
commit 6d12dca6f3
3 changed files with 14 additions and 8 deletions

View File

@ -51,6 +51,8 @@ function uupListEditions($lang = 'en-us', $updateId = 0) {
$editionList = array(); $editionList = array();
$editionListFancy = array(); $editionListFancy = array();
foreach(array_keys($genPack[$lang]) as $edition) { foreach(array_keys($genPack[$lang]) as $edition) {
if($edition == 'LXP') continue;
if(isset($fancyEditionNames[$edition])) { if(isset($fancyEditionNames[$edition])) {
$fancyName = $fancyEditionNames[$edition]; $fancyName = $fancyEditionNames[$edition];
} else { } else {

View File

@ -43,15 +43,19 @@ function uupListLangs($updateId = 0) {
$langList = array(); $langList = array();
$langListFancy = array(); $langListFancy = array();
foreach(array_keys($genPack) as $val) { foreach($genPack as $key => $val) {
if(isset($fancyLangNames[$val])) { if(!count(array_diff(array_keys($val), array('LXP')))) {
$fancyName = $fancyLangNames[$val]; continue;
} else {
$fancyName = $val;
} }
$langList[] = $val; if(isset($fancyLangNames[$key])) {
$langListFancy[$val] = $fancyName; $fancyName = $fancyLangNames[$key];
} else {
$fancyName = $key;
}
$langList[] = $key;
$langListFancy[$key] = $fancyName;
} }
return array( return array(

View File

@ -16,7 +16,7 @@ limitations under the License.
*/ */
function uupApiVersion() { function uupApiVersion() {
return '1.20.0'; return '1.20.1';
} }
require_once dirname(__FILE__).'/auths.php'; require_once dirname(__FILE__).'/auths.php';