mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-08 04:29:23 -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:
@@ -6,7 +6,7 @@
|
||||
<!-- hack to set the title for the dialog -->
|
||||
<form id="gAddPhotosForm" action="<?= url::site("simple_uploader/finish?csrf=$csrf") ?>">
|
||||
<fieldset>
|
||||
<legend> <?= t("Add photos to %album_title", array("album_title" => p::purify($item->title))) ?> </legend>
|
||||
<legend> <?= t("Add photos to %album_title", array("album_title" => SafeString::purify($item->title))) ?> </legend>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
@@ -26,9 +26,9 @@
|
||||
</p>
|
||||
<ul class="gBreadcrumbs">
|
||||
<? foreach ($item->parents() as $parent): ?>
|
||||
<li> <?= p::clean($parent->title) ?> </li>
|
||||
<li> <?= SafeString::of($parent->title) ?> </li>
|
||||
<? endforeach ?>
|
||||
<li class="active"> <?= p::purify($item->title) ?> </li>
|
||||
<li class="active"> <?= SafeString::purify($item->title) ?> </li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
|
||||
Reference in New Issue
Block a user