]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
added @username in the reply text for a wire post
authorcash <cash.costello@gmail.com>
Thu, 23 Jun 2011 00:28:53 +0000 (20:28 -0400)
committercash <cash.costello@gmail.com>
Thu, 23 Jun 2011 00:28:53 +0000 (20:28 -0400)
mod/thewire/languages/en.php
mod/thewire/views/default/thewire/reply.php

index 1b9d71c56abc06d115e3e5b864d5aa3dee3b09bf..9b2b480aed65699a32078caea93291dac965e8e6 100644 (file)
@@ -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'",
index 3794e1454fb470670d6e371d04dd5117a2997440..341b691b19f5bfb8d2ba2f9b44d687fcb23e57c0 100644 (file)
@@ -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