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();
$editionListFancy = array();
foreach(array_keys($genPack[$lang]) as $edition) {
if($edition == 'LXP') continue;
if(isset($fancyEditionNames[$edition])) {
$fancyName = $fancyEditionNames[$edition];
} else {

View File

@ -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(

View File

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