mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-30 00:09:10 -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:
@@ -1,18 +1,18 @@
|
||||
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
||||
<?= $parent->thumb_img(array(), 25); ?>
|
||||
<? if (!access::can("edit", $parent) || $source->is_descendant($parent)): ?>
|
||||
<a href="javascript:load_tree('<?= $parent->id ?>',1)"> <?= p::clean($parent->title) ?> <?= t("(locked)") ?> </a>
|
||||
<a href="javascript:load_tree('<?= $parent->id ?>',1)"> <?= SafeString::of($parent->title) ?> <?= t("(locked)") ?> </a>
|
||||
<? else: ?>
|
||||
<a href="javascript:load_tree('<?= $parent->id ?>',0)"> <?= p::clean($parent->title) ?></a>
|
||||
<a href="javascript:load_tree('<?= $parent->id ?>',0)"> <?= SafeString::of($parent->title) ?></a>
|
||||
<? endif ?>
|
||||
<ul id="tree_<?= $parent->id ?>">
|
||||
<? foreach ($children as $child): ?>
|
||||
<li id="node_<?= $child->id ?>" class="node">
|
||||
<?= $child->thumb_img(array(), 25); ?>
|
||||
<? if (!access::can("edit", $child) || $source->is_descendant($child)): ?>
|
||||
<a href="javascript:load_tree('<?= $child->id ?>',1)"> <?= p::clean($child->title) ?> <?= t("(locked)") ?></a>
|
||||
<a href="javascript:load_tree('<?= $child->id ?>',1)"> <?= SafeString::of($child->title) ?> <?= t("(locked)") ?></a>
|
||||
<? else: ?>
|
||||
<a href="javascript:load_tree('<?= $child->id ?>',0)"> <?= p::clean($child->title) ?> </a>
|
||||
<a href="javascript:load_tree('<?= $child->id ?>',0)"> <?= SafeString::of($child->title) ?> </a>
|
||||
<? endif ?>
|
||||
</li>
|
||||
<? endforeach ?>
|
||||
|
||||
Reference in New Issue
Block a user