summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-12-29 15:48:21 -0800
committerTim Almdal <tnalmdal@shaw.ca>2009-12-29 15:48:21 -0800
commit41969cc9e454637f6e3a04b0e339942cbb140cf6 (patch)
treeaaea9c0adeec8e2995c93061aa64aae6ecabc4c2
parent38f2784fbbb0661dc57627d2878cb640bbffe271 (diff)
Another holdover from the K2.4 conversion. In R2.4 the url::current(true) was returning an empty string. This fixes ticket #955.
-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")));
}
}