Merge pull request #6090 from zeroadam/TextToL10n

Split functions to L10n
This commit is contained in:
Hypolite Petovan 2018-11-06 13:44:30 -05:00 committed by GitHub
commit dc669fa736
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 80 additions and 75 deletions

View file

@ -40,7 +40,7 @@ function poke_init(App $a)
$verb = notags(trim($_GET['verb']));
$verbs = get_poke_verbs();
$verbs = L10n::getPokeVerbs();
if (!array_key_exists($verb, $verbs)) {
return;
@ -171,7 +171,7 @@ function poke_content(App $a)
$parent = (x($_GET,'parent') ? intval($_GET['parent']) : '0');
$verbs = get_poke_verbs();
$verbs = L10n::getPokeVerbs();
$shortlist = [];
foreach ($verbs as $k => $v) {