From 253c6e1fc1ad6b9b7ac9d210af8e17a59df161e4 Mon Sep 17 00:00:00 2001 From: PayBas Date: Tue, 14 Oct 2014 10:59:03 +0200 Subject: [PATCH] [ticket/12796] Add view own profile to UCP (and vice versa) PHPBB3-12796 --- phpBB/memberlist.php | 1 + phpBB/styles/prosilver/template/memberlist_view.html | 1 + phpBB/styles/prosilver/template/ucp_profile_profile_info.html | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/phpBB/memberlist.php b/phpBB/memberlist.php index 919036a85c..872114905e 100644 --- a/phpBB/memberlist.php +++ b/phpBB/memberlist.php @@ -681,6 +681,7 @@ switch ($mode) 'U_MCP_QUEUE' => ($auth->acl_getf_global('m_approve')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=queue', true, $user->session_id) : '', 'U_SWITCH_PERMISSIONS' => ($auth->acl_get('a_switchperm') && $user->data['user_id'] != $user_id) ? append_sid("{$phpbb_root_path}ucp.$phpEx", "mode=switch_perm&u={$user_id}&hash=" . generate_link_hash('switchperm')) : '', + 'U_EDIT_SELF' => ($user_id == $user->data['user_id']) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=ucp_profile&mode=profile_info') : '', 'S_USER_NOTES' => ($user_notes_enabled) ? true : false, 'S_WARN_USER' => ($warn_user_enabled) ? true : false, diff --git a/phpBB/styles/prosilver/template/memberlist_view.html b/phpBB/styles/prosilver/template/memberlist_view.html index eb151af8df..86f4d8787a 100644 --- a/phpBB/styles/prosilver/template/memberlist_view.html +++ b/phpBB/styles/prosilver/template/memberlist_view.html @@ -20,6 +20,7 @@
{L_USERNAME}{L_COLON}
{USERNAME} + [ {L_BUTTON_EDIT} ] [ {L_USER_ADMIN} ] [ {L_USER_BAN} ] [ {L_USE_PERMISSIONS} ] diff --git a/phpBB/styles/prosilver/template/ucp_profile_profile_info.html b/phpBB/styles/prosilver/template/ucp_profile_profile_info.html index 986bc92298..ff6aa0b3f4 100644 --- a/phpBB/styles/prosilver/template/ucp_profile_profile_info.html +++ b/phpBB/styles/prosilver/template/ucp_profile_profile_info.html @@ -2,7 +2,7 @@
-

{L_TITLE}

+

{L_TITLE} [{L_READ_PROFILE}]