From c01ac42c4604b3b129e8089e0dc683ebd418b380 Mon Sep 17 00:00:00 2001
From: Andy Staudacher
Date: Sat, 29 Aug 2009 12:48:40 -0700
Subject: 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.
---
modules/comment/views/comment.html.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
(limited to 'modules/comment/views/comment.html.php')
diff --git a/modules/comment/views/comment.html.php b/modules/comment/views/comment.html.php
index 3d17411c..31bb7f4d 100644
--- a/modules/comment/views/comment.html.php
+++ b/modules/comment/views/comment.html.php
@@ -4,15 +4,15 @@
"
class="gAvatar"
- alt="= p::clean($comment->author_name()) ?>"
+ alt="= SafeString::of($comment->author_name()) ?>"
width="40"
height="40" />
= t("on %date_time, %author_name said",
array("date_time" => gallery::date_time($comment->created),
- "author_name" => p::clean($comment->author_name()))) ?>
+ "author_name" => SafeString::of($comment->author_name()))) ?>
- = nl2br(p::purify($comment->text)) ?>
+ = nl2br(SafeString::purify($comment->text)) ?>
--
cgit v1.2.3