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:
Tim Almdal
2009-11-25 08:12:50 -08:00
parent 82ee5f9d33
commit 4c3b9e363a
5 changed files with 20 additions and 161 deletions
+2 -2
View File
@@ -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)) ?>