Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Another holdover from the K2.4 conversion. In R2.4 the url::current(t…

…rue) was returning an empty string. This fixes ticket #955.
  • Loading branch information...
commit 41969cc9e454637f6e3a04b0e339942cbb140cf6 1 parent 38f2784
@talmdal talmdal authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  modules/gallery/helpers/gallery_event.php
View
3  modules/gallery/helpers/gallery_event.php
@@ -109,6 +109,7 @@ static function user_menu($menu, $theme) {
->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 @@ static function user_menu($menu, $theme) {
->id("user_menu_logout")
->css_id("g-logout-link")
->url(url::site("logout?csrf=$csrf&continue=" .
- urlencode(url::current(true))))
+ urlencode($item->url())))
->label(t("Logout")));
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.