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:
Andy Staudacher
2009-08-29 12:48:40 -07:00
parent a10063ff68
commit c01ac42c46
59 changed files with 159 additions and 188 deletions

View File

@@ -1,18 +1,18 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
<html>
<head>
<title><?= p::clean($subject) ?> </title>
<title><?= SafeString::of($subject) ?> </title>
</head>
<body>
<h2> <?= p::clean($subject) ?> </h2>
<h2> <?= SafeString::of($subject) ?> </h2>
<table>
<tr>
<? if ($item->original("title") != $item->title): ?>
<td><?= t("New Title:") ?></td>
<td><?= p::clean($item->title) ?></td>
<td><?= SafeString::of($item->title) ?></td>
<? else: ?>
<td><?= t("Title:") ?></td>
<td><?= p::clean($item->title) ?></td>
<td><?= SafeString::of($item->title) ?></td>
<? endif ?>
</tr>
<tr>
@@ -22,12 +22,12 @@
<? if ($item->original("description") != $item->description): ?>
<tr>
<td><?= t("New Description:") ?></td>
<td><?= p::clean($item->description) ?></td>
<td><?= SafeString::of($item->description) ?></td>
</tr>
<? elseif (!empty($item->description)): ?>
<tr>
<td><?= t("Description:") ?></td>
<td><?= p::clean($item->description) ?></td>
<td><?= SafeString::of($item->description) ?></td>
</tr>
<? endif ?>
</table>