summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery_event.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-01-23 13:29:49 -0800
committerTim Almdal <tnalmdal@shaw.ca>2010-01-23 13:29:49 -0800
commitabdeb21ccbb25aee564335dbbfca4a8afaf49384 (patch)
tree0e17fdf96cc6a2f7ccde3afe8757e431e9479f53 /modules/gallery/helpers/gallery_event.php
parent06ef3885b30be843a7c86a93f5642680ab881b1c (diff)
Add a user_menu method to the Admin_View and then use this method to get the
user menu. Since the information displayed is identical in both admin and theme views, it makes sense to combine the generation to it is done in a common location.
Diffstat (limited to 'modules/gallery/helpers/gallery_event.php')
-rw-r--r--modules/gallery/helpers/gallery_event.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/gallery/helpers/gallery_event.php b/modules/gallery/helpers/gallery_event.php
index 982bf094..6175e049 100644
--- a/modules/gallery/helpers/gallery_event.php
+++ b/modules/gallery/helpers/gallery_event.php
@@ -111,12 +111,11 @@ 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")
->view("login_current_user.html")
- ->url(url::site("form/edit/users/{$user->id}"))
+ ->url(url::site("form/edit/user/{$user->id}"))
->label($user->display_name()));
$menu->append(Menu::factory("link")
->id("user_menu_logout")