Code Duplication    Length = 4-7 lines in 2 locations

main/inc/lib/userportal.lib.php 1 location

@@ 795-801 (lines=7) @@
792
            $userPicture = UserManager::getUserPicture(api_get_user_id());
793
            $content = null;
794
795
            if (api_get_setting('allow_social_tool') == 'true') {
796
                $content .= '<a style="text-align:center" href="' . api_get_path(WEB_PATH) . 'main/social/home.php">
797
                <img class="img-circle" src="' . $userPicture . '" ></a>';
798
            } else {
799
                $content .= '<a style="text-align:center" href="' . api_get_path(WEB_PATH) . 'main/auth/profile.php">
800
                <img class="img-circle" title="' . get_lang('EditProfile') . '" src="' . $userPicture. '" ></a>';
801
            }
802
803
            $html = self::show_right_block(
804
                null,

main/inc/lib/message.lib.php 1 location

@@ 1048-1051 (lines=4) @@
1045
            if ($source == 'outbox') {
1046
                $message_content .= get_lang('From').': <a href="'.api_get_path(WEB_PATH).'main/social/profile.php?u='.$user_sender_id.'">'.$name.'</a> '.
1047
                    api_strtolower(get_lang('To')).'&nbsp;<b>'.$receiverUserInfo['complete_name'].'</b>';
1048
            } else {
1049
                $message_content .= get_lang('From').' <a href="'.api_get_path(WEB_PATH).'main/social/profile.php?u='.$user_sender_id.'">'.$name.'</a> '.
1050
                    api_strtolower(get_lang('To')).'&nbsp;<b>'.get_lang('Me').'</b>';
1051
            }
1052
        } else {
1053
            if ($source == 'outbox') {
1054
                $message_content .= get_lang('From').':&nbsp;'.$name.'</b> '.api_strtolower(get_lang('To')).' <b>'.$receiverUserInfo['complete_name'].'</b>';