Template fix

This commit is contained in:
Daniil Gentili 2020-10-06 18:06:34 +02:00
parent 14d14fdc3c
commit da88415e8d
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
1 changed files with 2 additions and 2 deletions

View File

@ -123,8 +123,8 @@ trait Templates
$title .= "<br><b>$message</b>";
$form = '<input type="hidden" name="creating_app" value="yes" required/>';
foreach (['app_title', 'app_shortname', 'app_url', 'app_platform', 'app_desc'] as $field) {
$desc = \htmlentities(Lang::$current_lang["apiAppInstructionsAuto$field"]);
foreach (['app_title', 'app_shortname', 'app_url', 'app_platform', 'app_desc'] as $k => $field) {
$desc = \htmlentities(Lang::$current_lang["apiAppInstructionsAuto$k"]);
if ($field == 'app_platform') {
$form .= "$desc<br>";
foreach ([