Commit a5c05512 authored by Kjartan's avatar Kjartan

- added some missing title attributs to links.

parent 8cfbe412
......@@ -554,10 +554,10 @@ function format_name($object) {
if ($object->uid && $object->name) {
if (strstr($PHP_SELF, "admin.php")) {
$output = la($object->name, array("mod" => "user", "op" => "edit", "id" => $object->uid));
$output = la($object->name, array("mod" => "user", "op" => "edit", "id" => $object->uid), "", array("title" => t("Administer user profile.")));
}
else {
$output = lm($object->name, array("mod" => "user", "op" => "view", "id" => $object->uid));
$output = lm($object->name, array("mod" => "user", "op" => "view", "id" => $object->uid), "", array("title" => t("View user profile.")));
}
}
else {
......@@ -674,7 +674,7 @@ function lm($text, $args = array(), $anchor = "", $attributes = array()) {
}
function field_get($string, $name) {
ereg(",$name=([^,]+)", ",$string", $regs);
ereg(", $name=([^,]+)", ",$string", $regs);
return $regs[1];
}
......
......@@ -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));
}
}
......
......@@ -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));
}
}
......
......@@ -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.")));
......
......@@ -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.")));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment