summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-12-30 07:57:23 -0800
committerTim Almdal <tnalmdal@shaw.ca>2009-12-30 07:57:23 -0800
commit2e98825c25c540dfc2555a2f36bc3b9e2f80db54 (patch)
tree5c3762a2948aa77ec3f1843baaa29ecb79ca2c72
parent7e8985d0e8ae8db124ba20c8292c1ca8df038169 (diff)
parent373dcf0a424ae27388ccf5bfa55f54f9d896778a (diff)
Merge branch 'master' into talmdal_dev
-rw-r--r--modules/gallery/helpers/gallery_event.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery_event.php b/modules/gallery/helpers/gallery_event.php
index 301432d4..0303c9cb 100644
--- a/modules/gallery/helpers/gallery_event.php
+++ b/modules/gallery/helpers/gallery_event.php
@@ -109,6 +109,7 @@ class gallery_event_Core {
->label(t("Login")));
} else {
$csrf = access::csrf_token();
+ $item = $theme->item();
$menu->append(Menu::factory("dialog")
->id("user_menu_edit_profile")
->css_id("g-user-profile-link")
@@ -119,7 +120,7 @@ class gallery_event_Core {
->id("user_menu_logout")
->css_id("g-logout-link")
->url(url::site("logout?csrf=$csrf&amp;continue=" .
- urlencode(url::current(true))))
+ urlencode($item->url())))
->label(t("Logout")));
}
}