Drupal: Fixed link to use url() function.

This commit is contained in:
Shawn Kwang 2017-05-02 10:43:16 -05:00
parent 045367dc16
commit 4018dc016e
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ function boinc_links__system_main_menu($links, $menu, $element) {
if ($link['href'] == 'dashboard') {
$item_count = privatemsg_unread_count();
if ($item_count) {
$link['title'] .= '</a> <a href="/messages" class="compound secondary"><div class="item-count-wrapper"><span class="item-count">' . $item_count . '</span></div>';
$link['title'] .= '</a> <a href="' . url('messages') . '" class="compound secondary"><div class="item-count-wrapper"><span class="item-count">' . $item_count . '</span></div>';
$link['html'] = TRUE;
$link['attributes']['class'] = 'compound';
}