mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-20 03:19:13 -04:00
1) drop unnecessary semicolon 2) start with <?php for extra security in the case that the server itself doesn't have short_tags enabled (the app won't work, but we need to make sure that we're still secure)
11 lines
346 B
PHP
11 lines
346 B
PHP
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
|
<ul>
|
|
<? foreach ($comments as $comment): ?>
|
|
<li>
|
|
<?= date("Y-M-d H:i:s", $comment->created) ?>
|
|
<? printf(_("%s said %s"), "<a href=\"#\">$comment->author</a>",
|
|
"<i>\"" . text::limit_words($comment->text, 50) . "\"</i>"); ?>
|
|
</li>
|
|
<? endforeach ?>
|
|
</ul>
|