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();
|
$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 {
|
||||||
|
@ -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(
|
||||||
|
@ -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';
|
||||||
|
Loading…
Reference in New Issue
Block a user