diff options
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> |