timestamped comments
This commit is contained in:
parent
cd3976821c
commit
ec5b08f659
@ -123,6 +123,7 @@ class CommentListTheme extends Themelet {
|
|||||||
$i_uid = int_escape($comment->owner_id);
|
$i_uid = int_escape($comment->owner_id);
|
||||||
$h_name = html_escape($comment->owner_name);
|
$h_name = html_escape($comment->owner_name);
|
||||||
$h_poster_ip = html_escape($comment->poster_ip);
|
$h_poster_ip = html_escape($comment->poster_ip);
|
||||||
|
$h_timestamp = autodate($comment->posted);
|
||||||
$h_comment = ($trim ? substr($tfe->stripped, 0, 50)."..." : $tfe->formatted);
|
$h_comment = ($trim ? substr($tfe->stripped, 0, 50)."..." : $tfe->formatted);
|
||||||
$i_comment_id = int_escape($comment->comment_id);
|
$i_comment_id = int_escape($comment->comment_id);
|
||||||
$i_image_id = int_escape($comment->image_id);
|
$i_image_id = int_escape($comment->image_id);
|
||||||
@ -136,7 +137,7 @@ class CommentListTheme extends Themelet {
|
|||||||
$stripped_nonl = str_replace("\n", "\\n", substr($tfe->stripped, 0, 50));
|
$stripped_nonl = str_replace("\n", "\\n", substr($tfe->stripped, 0, 50));
|
||||||
$stripped_nonl = str_replace("\r", "\\r", $stripped_nonl);
|
$stripped_nonl = str_replace("\r", "\\r", $stripped_nonl);
|
||||||
$h_dellink = $user->is_admin() ?
|
$h_dellink = $user->is_admin() ?
|
||||||
"<br>($h_poster_ip, <a ".
|
"<br>($h_poster_ip, $h_timestamp, <a ".
|
||||||
"onclick=\"return confirm('Delete comment by $h_name:\\n$stripped_nonl');\" ".
|
"onclick=\"return confirm('Delete comment by $h_name:\\n$stripped_nonl');\" ".
|
||||||
"href='".make_link("comment/delete/$i_comment_id/$i_image_id")."'>Del</a>)" : "";
|
"href='".make_link("comment/delete/$i_comment_id/$i_image_id")."'>Del</a>)" : "";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user