aboutsummaryrefslogtreecommitdiff
path: root/mod/thewire
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2011-06-22 20:28:53 -0400
committercash <cash.costello@gmail.com>2011-06-22 20:28:53 -0400
commit58e020e604e7e4f897a9025e73d9afb1ddba62ff (patch)
tree1687113d9025f00575d2ef95af2fdc5b78998d43 /mod/thewire
parent49853b53578ea3254543020e553b29a7a33ab0af (diff)
downloadelgg-58e020e604e7e4f897a9025e73d9afb1ddba62ff.tar.gz
elgg-58e020e604e7e4f897a9025e73d9afb1ddba62ff.tar.bz2
added @username in the reply text for a wire post
Diffstat (limited to 'mod/thewire')
-rw-r--r--mod/thewire/languages/en.php2
-rw-r--r--mod/thewire/views/default/thewire/reply.php7
2 files changed, 6 insertions, 3 deletions
diff --git a/mod/thewire/languages/en.php b/mod/thewire/languages/en.php
index 1b9d71c56..9b2b480ae 100644
--- a/mod/thewire/languages/en.php
+++ b/mod/thewire/languages/en.php
@@ -13,7 +13,7 @@ $english = array(
'thewire:user' => "%s's wire posts",
'thewire:friends' => "Friends' wire posts",
'thewire:reply' => "Reply",
- 'thewire:replying' => "Replying to %s who wrote",
+ 'thewire:replying' => "Replying to %s (@%s) who wrote",
'thewire:thread' => "Thread",
'thewire:charleft' => "characters remaining",
'thewire:tags' => "Wire posts tagged with '%s'",
diff --git a/mod/thewire/views/default/thewire/reply.php b/mod/thewire/views/default/thewire/reply.php
index 3794e1454..341b691b1 100644
--- a/mod/thewire/views/default/thewire/reply.php
+++ b/mod/thewire/views/default/thewire/reply.php
@@ -5,7 +5,10 @@
$post = $vars['post'];
$poster = $post->getOwnerEntity();
-
+$poster_details = array(
+ htmlspecialchars($poster->name, ENT_QUOTES, 'UTF-8'),
+ htmlspecialchars($poster->username, ENT_QUOTES, 'UTF-8'),
+);
?>
-<b><?php echo elgg_echo('thewire:replying', array($poster->name)); ?>: </b>
+<b><?php echo elgg_echo('thewire:replying', $poster_details); ?>: </b>
<?php echo $post->description; \ No newline at end of file