]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
More consistent way of building topbar item for messages plugin
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 19 Feb 2011 05:17:12 +0000 (05:17 +0000)
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 19 Feb 2011 05:17:12 +0000 (05:17 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8319 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/messages/views/default/messages/topbar.php

index b859b3aee1f456b967f3903d785d4f11a534cb73..90a227f80d3659c007b56626be8a1602224b3bf9 100644 (file)
@@ -16,11 +16,11 @@ $class = "elgg-icon messages-icon";
 $text = "&nbsp;";
 if ($num_messages != 0) {
        $class = "$class new";
-       $text = "<span>$num_messages</span>";
+       $text = $num_messages;
 }
+$text = "<span class='$class'>$text</span>";
 
 echo elgg_view('output/url', array(
        'href' => 'pg/messages/inbox/' . elgg_get_logged_in_user_entity()->username,
        'text' => $text,
-       'class' => $class,
 ));