mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-18 21:05:01 -04:00
Refactor the comment module as part of ticket: #917 "Remove Rest Controller"
* Remove the methods create, update, delete, get_edit_form as there are not used * Change the return when a comment is created to return the html for the new comment. This saves a second get request to down load the comment.
This commit is contained in:
@@ -8,9 +8,9 @@
|
||||
width="40"
|
||||
height="40" />
|
||||
</a>
|
||||
<?= t("on %date_time, %author_name said",
|
||||
<?= t("on %date_time, <a href=\"#\">%name</a> said",
|
||||
array("date_time" => gallery::date_time($comment->created),
|
||||
"author_name" => html::clean($comment->author_name()))) ?>
|
||||
"name" => html::clean($comment->author_name()))) ?>
|
||||
</p>
|
||||
<div>
|
||||
<?= nl2br(html::purify($comment->text)) ?>
|
||||
|
||||
Reference in New Issue
Block a user