summaryrefslogtreecommitdiff
path: root/modules/notification
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2009-08-29 12:48:40 -0700
committerAndy Staudacher <andy.st@gmail.com>2009-08-29 12:48:40 -0700
commitc01ac42c4604b3b129e8089e0dc683ebd418b380 (patch)
tree87c688c638733e7d8a8215bc5f4ee89d0f598c62 /modules/notification
parenta10063ff68cf5988297dcad889384ab2080c3850 (diff)
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.
Diffstat (limited to 'modules/notification')
-rw-r--r--modules/notification/views/comment_published.html.php12
-rw-r--r--modules/notification/views/item_added.html.php8
-rw-r--r--modules/notification/views/item_deleted.html.php6
-rw-r--r--modules/notification/views/item_updated.html.php12
4 files changed, 19 insertions, 19 deletions
diff --git a/modules/notification/views/comment_published.html.php b/modules/notification/views/comment_published.html.php
index 4a56cdad..02daf921 100644
--- a/modules/notification/views/comment_published.html.php
+++ b/modules/notification/views/comment_published.html.php
@@ -1,26 +1,26 @@
<?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>
<td><?= t("Comment:") ?></td>
- <td><?= nl2br(p::purify($comment->text)) ?></td>
+ <td><?= nl2br(SafeString::purify($comment->text)) ?></td>
</tr>
<tr>
<td><?= t("Author Name:") ?></td>
- <td><?= p::clean($comment->author_name()) ?></td>
+ <td><?= SafeString::of($comment->author_name()) ?></td>
</tr>
<tr>
<td><?= t("Author Email:") ?></td>
- <td><?= p::clean($comment->author_email()) ?></td>
+ <td><?= SafeString::of($comment->author_email()) ?></td>
</tr>
<tr>
<td><?= t("Author URL:") ?></td>
- <td><?= p::clean($comment->author_url()) ?></td>
+ <td><?= SafeString::of($comment->author_url()) ?></td>
</tr>
<tr>
<td><?= t("Url:") ?></td>
diff --git a/modules/notification/views/item_added.html.php b/modules/notification/views/item_added.html.php
index 86724927..70b8fca4 100644
--- a/modules/notification/views/item_added.html.php
+++ b/modules/notification/views/item_added.html.php
@@ -1,14 +1,14 @@
<?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>
<td><?= t("Title:") ?></td>
- <td><?= p::purify($item->title) ?></td>
+ <td><?= SafeString::purify($item->title) ?></td>
</tr>
<tr>
<td><?= t("Url:") ?></td>
@@ -21,7 +21,7 @@
<? if ($item->description): ?>
<tr>
<td><?= t("Description:") ?></td>
- <td><?= nl2br(p::purify($item->description)) ?></td>
+ <td><?= nl2br(SafeString::purify($item->description)) ?></td>
</tr>
<? endif ?>
</table>
diff --git a/modules/notification/views/item_deleted.html.php b/modules/notification/views/item_deleted.html.php
index 92215211..e04fc71b 100644
--- a/modules/notification/views/item_deleted.html.php
+++ b/modules/notification/views/item_deleted.html.php
@@ -1,15 +1,15 @@
<?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>
<td colspan="2">
<?= t("To view the changed album %title use the link below.",
- array("title" => p::purify($item->parent()->title))) ?>
+ array("title" => SafeString::purify($item->parent()->title))) ?>
</td>
</tr>
<tr>
diff --git a/modules/notification/views/item_updated.html.php b/modules/notification/views/item_updated.html.php
index 39f9113b..c3a4f795 100644
--- a/modules/notification/views/item_updated.html.php
+++ b/modules/notification/views/item_updated.html.php
@@ -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>