summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-11-09 11:25:53 +0800
committereltrac <hi@eltr.ac>2026-11-09 11:25:53 +0800
commit382e372a56f71029113a24b2355966160c5325ef (patch)
tree8818cc87466ff58592188efff4fd8f9def619140
parent5960c72cf74c8c740abdd220ec99c9310e705c4a (diff)
template/saying: fix #74
-rw-r--r--saying.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/saying.php b/saying.php
index 3fcf651..b2f037a 100644
--- a/saying.php
+++ b/saying.php
@@ -42,9 +42,10 @@ echo $commentClass;
</div>
<?php } ?>
<main class="main-container container">
- <div class="saying-body">
+ <div class="saying-body" role="comment" id="<?php $this->respondId(); ?>">
<?php if($this->user->hasLogin()): ?>
<form method="post" action="<?php $this->commentUrl() ?>" id="comment-form" class="saying-form" role="form">
+ <input type="hidden" name="_" value="<?php echo $this->security->getToken($this->request->getRequestUrl()); ?>">
<p>
<textarea rows="8" cols="50" name="text" id="textarea" placeholder="<?php gtecho('sayingPageTexts','sayingPlaceholder'); ?>" class="OwO-textarea comment-textarea textarea" required ><?php $this->remember('text'); ?></textarea>
</p>
@@ -66,4 +67,4 @@ echo $commentClass;
</div>
</div>
</main>
-<?php $this->need('includes/footer.php'); ?> \ No newline at end of file
+<?php $this->need('includes/footer.php'); ?>