diff options
author | Jonas Kohl | 2024-09-18 23:05:35 +0200 |
---|---|---|
committer | Jonas Kohl | 2024-09-18 23:05:35 +0200 |
commit | 01454544896827113e49db0d2848b5aab6ce14ae (patch) | |
tree | 9487c3d45a04d350bca2ed8401a797ed69cd7e8a /src/application/views/form_newtopic.php | |
parent | a65d424263adfbff9629c7d91a613e4504c84613 (diff) |
Many changes
Diffstat (limited to 'src/application/views/form_newtopic.php')
-rw-r--r-- | src/application/views/form_newtopic.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/application/views/form_newtopic.php b/src/application/views/form_newtopic.php index f701fbb..0850c84 100644 --- a/src/application/views/form_newtopic.php +++ b/src/application/views/form_newtopic.php @@ -13,11 +13,12 @@ RequestUtils::clearLastForm(); <h1><?= __("New topic") ?></h1> </div> <?php -if (($_formError = RequestUtils::getAndClearFormError()) !== null) { +if (($_formError = RequestUtils::getAndClearFormError("newtopic")) !== null) { _view("alert_error", ["message" => $_formError]); } ?> <form action="<?= htmlentities($_SERVER["REQUEST_URI"]) ?>#form" method="post" enctype="multipart/form-data"> +<input type="hidden" name="form_id" value="newtopic"> <div class="form-group"> <label for="i_message"><?= __("Topic title:") ?></label> <input type="text" class="form-control" id="i_title" name="title" value="<?= htmlentities($lastForm["title"] ?? "") ?>" required autofocus> |