Commit 46ea3659 authored by Kjartan's avatar Kjartan
Browse files

- added a logout link to the user menu.

- fixed some untranslated strings in the user.module.
parent 690e60f0
......@@ -249,6 +249,7 @@ function user_link($type) {
if ($type == "menu") {
$links[] = "<a href=\"module.php?mod=user&op=view\">". t("account settings") ."</a>";
$links[] = "<br /><a href=\"module.php?mod=user&op=logout\">". t("logout") ."</a>";
}
if ($type == "admin") {
......@@ -735,9 +736,9 @@ function user_edit($edit = array()) {
}
function user_menu() {
$links[] = "<a href=\"module.php?mod=user&op=view\">view user information</a>";
$links[] = "<a href=\"module.php?mod=user&op=edit\">edit user information</a>";
$links[] = "<a href=\"module.php?mod=user&op=logout\">logout</a>";
$links[] = "<a href=\"module.php?mod=user&op=view\">". t("view user information") ."</a>";
$links[] = "<a href=\"module.php?mod=user&op=edit\">". t("edit user information") ."</a>";
$links[] = "<a href=\"module.php?mod=user&op=logout\">". t("logout") ."</a>";
return "<div align=\"center\">". implode(" &middot; ", $links) ."</div>";
}
......
......@@ -249,6 +249,7 @@ function user_link($type) {
if ($type == "menu") {
$links[] = "<a href=\"module.php?mod=user&op=view\">". t("account settings") ."</a>";
$links[] = "<br /><a href=\"module.php?mod=user&op=logout\">". t("logout") ."</a>";
}
if ($type == "admin") {
......@@ -735,9 +736,9 @@ function user_edit($edit = array()) {
}
function user_menu() {
$links[] = "<a href=\"module.php?mod=user&op=view\">view user information</a>";
$links[] = "<a href=\"module.php?mod=user&op=edit\">edit user information</a>";
$links[] = "<a href=\"module.php?mod=user&op=logout\">logout</a>";
$links[] = "<a href=\"module.php?mod=user&op=view\">". t("view user information") ."</a>";
$links[] = "<a href=\"module.php?mod=user&op=edit\">". t("edit user information") ."</a>";
$links[] = "<a href=\"module.php?mod=user&op=logout\">". t("logout") ."</a>";
return "<div align=\"center\">". implode(" &middot; ", $links) ."</div>";
}
......
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