Commit 2fe66401 authored by Dries's avatar Dries

- Patch #3987 by jhriggs: changed the location of the logout link.

parent 628715e4
...@@ -511,7 +511,7 @@ function user_link($type) { ...@@ -511,7 +511,7 @@ function user_link($type) {
if ($user->uid) { if ($user->uid) {
menu('user', t("my account"), "user_page", 8); menu('user', t("my account"), "user_page", 8);
menu("user/edit", t("edit account"), "user_page", 0); menu("user/edit", t("edit account"), "user_page", 0);
menu("user/logout", t("log out"), "user_page", 10); menu("logout", t("log out"), "user_logout", 10);
} }
else { else {
menu('user', t("my account"), "user_page", 8, MENU_HIDE); menu('user', t("my account"), "user_page", 8, MENU_HIDE);
......
...@@ -511,7 +511,7 @@ function user_link($type) { ...@@ -511,7 +511,7 @@ function user_link($type) {
if ($user->uid) { if ($user->uid) {
menu('user', t("my account"), "user_page", 8); menu('user', t("my account"), "user_page", 8);
menu("user/edit", t("edit account"), "user_page", 0); menu("user/edit", t("edit account"), "user_page", 0);
menu("user/logout", t("log out"), "user_page", 10); menu("logout", t("log out"), "user_logout", 10);
} }
else { else {
menu('user', t("my account"), "user_page", 8, MENU_HIDE); menu('user', t("my account"), "user_page", 8, MENU_HIDE);
......
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