|
@@ -235,23 +235,9 @@ if ($group_id != 0) {
|
|
|
}else{
|
|
|
$social_avatar_block.= '<div class="status">'.Display::return_icon('offline.png').get_lang('Chat')." (".get_lang('Offline').')</div>';
|
|
|
}
|
|
|
- $editProfileUrl = api_get_path(WEB_CODE_PATH) . 'auth/profile.php';
|
|
|
|
|
|
- if (api_get_setting('sso_authentication') === 'true') {
|
|
|
- $subSSOClass = api_get_setting('sso_authentication_subclass');
|
|
|
- $objSSO = null;
|
|
|
+ $editProfileUrl = Display::getProfileEditionLink($user_id);
|
|
|
|
|
|
- if (!empty($subSSOClass)) {
|
|
|
- require_once api_get_path(SYS_CODE_PATH) . 'auth/sso/sso.' . $subSSOClass . '.class.php';
|
|
|
-
|
|
|
- $subSSOClass = 'sso' . $subSSOClass;
|
|
|
- $objSSO = new $subSSOClass();
|
|
|
- } else {
|
|
|
- $objSSO = new sso();
|
|
|
- }
|
|
|
-
|
|
|
- $editProfileUrl = $objSSO->generateProfileEditingURL();
|
|
|
- }
|
|
|
$social_avatar_block .= '<div class="edit-profile">
|
|
|
<a class="btn" href="' . $editProfileUrl . '">' . get_lang('EditProfile') . '</a>
|
|
|
</div>';
|
|
@@ -276,23 +262,9 @@ if ($group_id != 0) {
|
|
|
}else{
|
|
|
$social_avatar_block.= '<div class="status">'.Display::return_icon('offline.png').get_lang('Chat')." (".get_lang('Offline').')</div>';
|
|
|
}
|
|
|
- $editProfileUrl = api_get_path(WEB_CODE_PATH) . 'auth/profile.php';
|
|
|
|
|
|
- if (api_get_setting('sso_authentication') === 'true') {
|
|
|
- $subSSOClass = api_get_setting('sso_authentication_subclass');
|
|
|
- $objSSO = null;
|
|
|
+ $editProfileUrl = Display::getProfileEditionLink($user_id);
|
|
|
|
|
|
- if (!empty($subSSOClass)) {
|
|
|
- require_once api_get_path(SYS_CODE_PATH) . 'auth/sso/sso.' . $subSSOClass . '.class.php';
|
|
|
-
|
|
|
- $subSSOClass = 'sso' . $subSSOClass;
|
|
|
- $objSSO = new $subSSOClass();
|
|
|
- } else {
|
|
|
- $objSSO = new sso();
|
|
|
- }
|
|
|
-
|
|
|
- $editProfileUrl = $objSSO->generateProfileEditingURL();
|
|
|
- }
|
|
|
$social_avatar_block .= '<div class="edit-profile">
|
|
|
<a class="btn" href="' . $editProfileUrl . '">' . get_lang('EditProfile') . '</a>
|
|
|
</div>';
|