From d1bc88924267f992b539b635a8de296e96c56ae3 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 2 May 2008 15:11:05 +0000 Subject: - Patch #227830 by JohnAlbin: link attributes added to l() incorrectly. --- modules/blog/blog.module | 2 +- modules/comment/comment.admin.inc | 2 +- modules/node/node.module | 2 +- modules/system/system.module | 4 ++-- modules/user/user.module | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) (limited to 'modules') diff --git a/modules/blog/blog.module b/modules/blog/blog.module index 884b3745b..a2a207b76 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -49,7 +49,7 @@ function blog_user($type, &$edit, &$user) { $user->content['summary']['blog'] = array( '#type' => 'user_profile_item', '#title' => t('Blog'), - '#value' => l(t('View recent blog entries'), "blog/$user->uid", array('title' => t("Read @username's latest blog entries.", array('@username' => $user->name)))), + '#value' => l(t('View recent blog entries'), "blog/$user->uid", array('attributes' => array('title' => t("Read @username's latest blog entries.", array('@username' => $user->name))))), '#attributes' => array('class' => 'blog'), ); } diff --git a/modules/comment/comment.admin.inc b/modules/comment/comment.admin.inc index 5708bafb1..a52a4b642 100644 --- a/modules/comment/comment.admin.inc +++ b/modules/comment/comment.admin.inc @@ -64,7 +64,7 @@ function comment_admin_overview($type = 'new', $arg) { while ($comment = db_fetch_object($result)) { $comments[$comment->cid] = ''; $comment->name = $comment->uid ? $comment->registered_name : $comment->name; - $form['subject'][$comment->cid] = array('#value' => l($comment->subject, 'node/' . $comment->nid, array('title' => truncate_utf8($comment->comment, 128), 'fragment' => 'comment-' . $comment->cid))); + $form['subject'][$comment->cid] = array('#value' => l($comment->subject, 'node/' . $comment->nid, array('attributes' => array('title' => truncate_utf8($comment->comment, 128)), 'fragment' => 'comment-' . $comment->cid))); $form['username'][$comment->cid] = array('#value' => theme('username', $comment)); $form['node_title'][$comment->cid] = array('#value' => l($comment->node_title, 'node/' . $comment->nid)); $form['timestamp'][$comment->cid] = array('#value' => format_date($comment->timestamp, 'small')); diff --git a/modules/node/node.module b/modules/node/node.module index bfa6c8cda..ed82a31f8 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -135,7 +135,7 @@ function node_title_list($result, $title = NULL) { $items = array(); $num_rows = FALSE; while ($node = db_fetch_object($result)) { - $items[] = l($node->title, 'node/' . $node->nid, !empty($node->comment_count) ? array('title' => format_plural($node->comment_count, '1 comment', '@count comments')) : array()); + $items[] = l($node->title, 'node/' . $node->nid, !empty($node->comment_count) ? array('attributes' => array('title' => format_plural($node->comment_count, '1 comment', '@count comments'))) : array()); $num_rows = TRUE; } diff --git a/modules/system/system.module b/modules/system/system.module index 21955818a..e8e9d0e14 100644 --- a/modules/system/system.module +++ b/modules/system/system.module @@ -2084,10 +2084,10 @@ function theme_system_powered_by($image_path) { function theme_system_compact_link() { $output = ''; diff --git a/modules/user/user.module b/modules/user/user.module index fd3f5b0c2..2b1414c59 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -627,9 +627,9 @@ function user_login_block() { ); $items = array(); if (variable_get('user_register', 1)) { - $items[] = l(t('Create new account'), 'user/register', array('title' => t('Create a new user account.'))); + $items[] = l(t('Create new account'), 'user/register', array('attributes' => array('title' => t('Create a new user account.')))); } - $items[] = l(t('Request new password'), 'user/password', array('title' => t('Request new password via e-mail.'))); + $items[] = l(t('Request new password'), 'user/password', array('attributes' => array('title' => t('Request new password via e-mail.')))); $form['links'] = array('#value' => theme('item_list', $items)); return $form; } -- cgit v1.2.3