From a5c05512fc526e65f1aa556874046d9ff74eb5a7 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Fri, 14 Jun 2002 13:48:35 +0000 Subject: - added some missing title attributs to links. --- modules/page.module | 4 ++-- modules/page/page.module | 4 ++-- modules/user.module | 2 +- modules/user/user.module | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'modules') diff --git a/modules/page.module b/modules/page.module index f326f4254..41e8e55c0 100644 --- a/modules/page.module +++ b/modules/page.module @@ -64,9 +64,9 @@ function page_load($node) { function page_link($type) { if ($type == "page" && user_access("access content")) { - $result = db_query("SELECT n.nid, p.link FROM page p LEFT JOIN node n ON p.nid = n.nid WHERE n.status = '1' AND p.link != '' ORDER BY p.link"); + $result = db_query("SELECT n.nid, n.title, p.link FROM page p LEFT JOIN node n ON p.nid = n.nid WHERE n.status = '1' AND p.link != '' ORDER BY p.link"); while ($page = db_fetch_object($result)) { - $links[] = l($page->link, array("id" => $page->nid)); + $links[] = l($page->link, array("id" => $page->nid), "node", "", array("title" => $page->title)); } } diff --git a/modules/page/page.module b/modules/page/page.module index f326f4254..41e8e55c0 100644 --- a/modules/page/page.module +++ b/modules/page/page.module @@ -64,9 +64,9 @@ function page_load($node) { function page_link($type) { if ($type == "page" && user_access("access content")) { - $result = db_query("SELECT n.nid, p.link FROM page p LEFT JOIN node n ON p.nid = n.nid WHERE n.status = '1' AND p.link != '' ORDER BY p.link"); + $result = db_query("SELECT n.nid, n.title, p.link FROM page p LEFT JOIN node n ON p.nid = n.nid WHERE n.status = '1' AND p.link != '' ORDER BY p.link"); while ($page = db_fetch_object($result)) { - $links[] = l($page->link, array("id" => $page->nid)); + $links[] = l($page->link, array("id" => $page->nid), "node", "", array("title" => $page->title)); } } diff --git a/modules/user.module b/modules/user.module index 245a00a54..bc989c788 100644 --- a/modules/user.module +++ b/modules/user.module @@ -384,7 +384,7 @@ function user_link($type) { if ($type == "menu.misc") { if (user_access("access administration pages")) { - $links[] = la(t("administer %a", array("%a" => variable_get("site_name", "drupal")))); + $links[] = la(t("administer %a", array("%a" => variable_get("site_name", "drupal"))), array(), "", array("title" => t("Access administration pages."))); } $links[] = lm(t("logout"), array("mod" => "user", "op" => "logout"), "", array("title" => t("Logout."))); diff --git a/modules/user/user.module b/modules/user/user.module index 245a00a54..bc989c788 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -384,7 +384,7 @@ function user_link($type) { if ($type == "menu.misc") { if (user_access("access administration pages")) { - $links[] = la(t("administer %a", array("%a" => variable_get("site_name", "drupal")))); + $links[] = la(t("administer %a", array("%a" => variable_get("site_name", "drupal"))), array(), "", array("title" => t("Access administration pages."))); } $links[] = lm(t("logout"), array("mod" => "user", "op" => "logout"), "", array("title" => t("Logout."))); -- cgit v1.2.3