diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/page.module | 4 | ||||
-rw-r--r-- | modules/page/page.module | 4 | ||||
-rw-r--r-- | modules/user.module | 2 | ||||
-rw-r--r-- | modules/user/user.module | 2 |
4 files changed, 6 insertions, 6 deletions
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."))); |