mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-02 05:01:04 -04:00
Refactor all calls of p::clean() to SafeString::of() and p::purify() to SafeString::purify().
Removing any p::clean() calls for arguments to t() and t2() since their args are wrapped in a SafeString anyway.
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
<ul>
|
||||
<? foreach ($photos as $photo): ?>
|
||||
<li class="gItem gPhoto">
|
||||
<a href="<?= url::site("photos/$photo->id") ?>" title="<?= p::clean($photo->title) ?>">
|
||||
<a href="<?= url::site("photos/$photo->id") ?>" title="<?= SafeString::of($photo->title) ?>">
|
||||
<img <?= photo::img_dimensions($photo->width, $photo->height, 72) ?>
|
||||
src="<?= $photo->thumb_url() ?>" alt="<?= p::clean($photo->title) ?>" />
|
||||
src="<?= $photo->thumb_url() ?>" alt="<?= SafeString::of($photo->title) ?>" />
|
||||
</a>
|
||||
</li>
|
||||
<? endforeach ?>
|
||||
|
||||
Reference in New Issue
Block a user