summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-05-02 15:11:05 +0000
committerDries Buytaert <dries@buytaert.net>2008-05-02 15:11:05 +0000
commitd1bc88924267f992b539b635a8de296e96c56ae3 (patch)
treefb74d421f9af67271938fcdcb8380e1b057f63fe
parent4bc5d8d244bf152629e5a6738ddab2dd0d225896 (diff)
downloadbrdo-d1bc88924267f992b539b635a8de296e96c56ae3.tar.gz
brdo-d1bc88924267f992b539b635a8de296e96c56ae3.tar.bz2
- Patch #227830 by JohnAlbin: link attributes added to l() incorrectly.
-rw-r--r--includes/theme.inc4
-rw-r--r--modules/blog/blog.module2
-rw-r--r--modules/comment/comment.admin.inc2
-rw-r--r--modules/node/node.module2
-rw-r--r--modules/system/system.module4
-rw-r--r--modules/user/user.module4
6 files changed, 9 insertions, 9 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index 8f389a0cc..d675e1564 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -1552,7 +1552,7 @@ function theme_username($object) {
}
if (user_access('access user profiles')) {
- $output = l($name, 'user/' . $object->uid, array('title' => t('View user profile.')));
+ $output = l($name, 'user/' . $object->uid, array('attributes' => array('title' => t('View user profile.'))));
}
else {
$output = check_plain($name);
@@ -1564,7 +1564,7 @@ function theme_username($object) {
// aggregator modules). This clause enables modules to display
// the true author of the content.
if (!empty($object->homepage)) {
- $output = l($object->name, $object->homepage, array('rel' => 'nofollow'));
+ $output = l($object->name, $object->homepage, array('attributes' => array('rel' => 'nofollow')));
}
else {
$output = check_plain($object->name);
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 = '<div class="compact-link">';
if (system_admin_compact_mode()) {
- $output .= l(t('Show descriptions'), 'admin/compact/off', array('title' => t('Expand layout to include descriptions.'), 'query' => drupal_get_destination()));
+ $output .= l(t('Show descriptions'), 'admin/compact/off', array('attributes' => array('title' => t('Expand layout to include descriptions.')), 'query' => drupal_get_destination()));
}
else {
- $output .= l(t('Hide descriptions'), 'admin/compact/on', array('title' => t('Compress layout by hiding descriptions.'), 'query' => drupal_get_destination()));
+ $output .= l(t('Hide descriptions'), 'admin/compact/on', array('attributes' => array('title' => t('Compress layout by hiding descriptions.')), 'query' => drupal_get_destination()));
}
$output .= '</div>';
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;
}