From 29a5535c593f93d78e29cf5e190c42f726422fe8 Mon Sep 17 00:00:00 2001 From: Xenomporio <> Date: Tue, 28 Jun 2022 17:07:05 +0200 Subject: [PATCH] Improvement of module_creator --- tools/module_creator/module_creator.php | 4 ++-- tools/module_creator/module_creator_edit.tpl | 17 ++++++++++++++++- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/tools/module_creator/module_creator.php b/tools/module_creator/module_creator.php index 217e64f6..f6363409 100644 --- a/tools/module_creator/module_creator.php +++ b/tools/module_creator/module_creator.php @@ -116,7 +116,7 @@ if ($argc >= 2) { // {|Bezeichnung|}:* if ($row['Field'] != 'id') { - $edit_form = $edit_form . '{|' . $row['Field'] . '|}:' . "\n"; + $edit_form = $edit_form . '{|' . ucfirst($row['Field']) . '|}:' . "\n"; } echo("\n"); @@ -138,7 +138,7 @@ if ($argc >= 2) { $php_file_contents = file_get_contents($php_template_file_name); if (empty($php_file_contents)) { - echo("Failed to load" . $php_template_file_name . "\n"); + echo("Failed to load " . $php_template_file_name . "\n"); exit; } diff --git a/tools/module_creator/module_creator_edit.tpl b/tools/module_creator/module_creator_edit.tpl index b0f3ca48..73517783 100644 --- a/tools/module_creator/module_creator_edit.tpl +++ b/tools/module_creator/module_creator_edit.tpl @@ -17,7 +17,7 @@
- {|PLACEHOLDER_LEGEND|} + {|PLACEHOLDER_LEGEND|}Info like this. PLACEHOLDER_FIELDS
@@ -26,6 +26,21 @@
+