aboutsummaryrefslogtreecommitdiff
path: root/mod/messages/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/messages/start.php')
-rw-r--r--mod/messages/start.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/mod/messages/start.php b/mod/messages/start.php
index 27b6252eb..76acb36a9 100644
--- a/mod/messages/start.php
+++ b/mod/messages/start.php
@@ -31,15 +31,13 @@ function messages_init() {
));
$class = "elgg-icon messages-icon";
- $text = " ";
+ $text = "<span class='$class'></span>";
// get unread messages
$num_messages = (int)messages_count_unread();
if ($num_messages != 0) {
- $class .= " new";
- $text = $num_messages;
+ $text .= "<span class=\"messages-new\">$num_messages</span>";
}
- $text = "<span class='$class'>$text</span>";
elgg_register_menu_item('topbar', array(
'name' => 'messages',