diff --git a/main/inc/lib/userportal.lib.php b/main/inc/lib/userportal.lib.php index 43f47f7971..624d24865b 100755 --- a/main/inc/lib/userportal.lib.php +++ b/main/inc/lib/userportal.lib.php @@ -848,7 +848,26 @@ class IndexManager $profile_content .= '
  • '.get_lang('MyFiles').'
  • '; } } - $profile_content .= '
  • '.get_lang('EditProfile').'
  • '; + + $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; + + 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(); + } + + $profile_content .= '
  • '.get_lang('EditProfile').'
  • '; $profile_content .= ''; $html = self::show_right_block(get_lang('Profile'), $profile_content, 'profile_block'); return $html;