diff --git a/swad_changelog.h b/swad_changelog.h index 1fe8a1c4..ba1abfa9 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -212,13 +212,15 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.172.3 (2017-03-31)" +#define Log_PLATFORM_VERSION "SWAD 16.173 (2017-04-02)" #define CSS_FILE "swad16.166.css" #define JS_FILE "swad16.144.js" // Number of lines (includes comments but not blank lines) has been got with the following command: // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1 /* + Version 16.173: Apr 03, 2017 Some help URLs translated to spanish. + Fixed bugs and code refactoring in public profiles. (217541 lines) Version 16.172.3: Mar 31, 2017 Some help URLs translated to spanish. (217556 lines) Version 16.172.2: Mar 30, 2017 Some help URLs translated to spanish. (217555 lines) Version 16.172.1: Mar 30, 2017 Some help URLs translated to spanish. (217554 lines) diff --git a/swad_follow.c b/swad_follow.c index 6ce2bd4b..bec3d39d 100644 --- a/swad_follow.c +++ b/swad_follow.c @@ -1064,7 +1064,7 @@ void Fol_UnfollowUsr1 (void) if (Fol_CheckUsrIsFollowerOf (Gbl.Usrs.Me.UsrDat.UsrCod, Gbl.Usrs.Other.UsrDat.UsrCod)) { - /***** Follow user in database *****/ + /***** Unfollow user in database *****/ sprintf (Query,"DELETE FROM usr_follow" " WHERE FollowerCod=%ld AND FollowedCod=%ld", Gbl.Usrs.Me.UsrDat.UsrCod, diff --git a/swad_help_URL.c b/swad_help_URL.c index d39cfd17..f6ba6475 100644 --- a/swad_help_URL.c +++ b/swad_help_URL.c @@ -1781,7 +1781,7 @@ const char *Hlp_MESSAGES_Notifications = #elif L==3 "MESSAGES.Notifications"; #elif L==4 - "MESSAGES.Notifications"; + "MESSAGES.Notifications.es"; #elif L==5 "MESSAGES.Notifications"; #elif L==6 @@ -1802,7 +1802,7 @@ const char *Hlp_MESSAGES_Domains = #elif L==3 "MESSAGES.Domains"; #elif L==4 - "MESSAGES.Domains"; + "MESSAGES.Domains.es"; #elif L==5 "MESSAGES.Domains"; #elif L==6 @@ -1823,7 +1823,7 @@ const char *Hlp_MESSAGES_Domains_edit = #elif L==3 "MESSAGES.Domains#edit"; #elif L==4 - "MESSAGES.Domains#edit"; + "MESSAGES.Domains.es#editar"; #elif L==5 "MESSAGES.Domains#edit"; #elif L==6 @@ -1844,7 +1844,7 @@ const char *Hlp_MESSAGES_Announcements = #elif L==3 "MESSAGES.Announcements"; #elif L==4 - "MESSAGES.Announcements"; + "MESSAGES.Announcements.es"; #elif L==5 "MESSAGES.Announcements"; #elif L==6 @@ -1865,7 +1865,7 @@ const char *Hlp_MESSAGES_Notices = #elif L==3 "MESSAGES.Notices"; #elif L==4 - "MESSAGES.Notices"; + "MESSAGES.Notices.es"; #elif L==5 "MESSAGES.Notices"; #elif L==6 @@ -1991,7 +1991,7 @@ const char *Hlp_MESSAGES_Email = #elif L==3 "MESSAGES.Email"; #elif L==4 - "MESSAGES.Email"; + "MESSAGES.Email.es"; #elif L==5 "MESSAGES.Email"; #elif L==6 diff --git a/swad_profile.c b/swad_profile.c index 3e429863..d33ba68e 100644 --- a/swad_profile.c +++ b/swad_profile.c @@ -71,10 +71,6 @@ extern struct Globals Gbl; /***************************** Private prototypes ****************************/ /*****************************************************************************/ -static void Prf_RequestUserProfileWithDefaultNickname (const char *DefaultNickname); - -static void Prf_ShowUserProfileAndTimeline (void); - static void Prf_PutLinkToUpdateAction (Act_Action_t Action,const char *EncryptedUsrCod); static unsigned long Prf_GetRankingFigure (long UsrCod,const char *FieldName); @@ -160,6 +156,12 @@ void Prf_PutLinkRequestAnotherUserProfile (void) void Prf_RequestUserProfile (void) { + extern const char *Hlp_SOCIAL_Profiles_view_public_profile; + extern const char *Txt_Another_user_s_profile; + extern const char *The_ClassForm[The_NUM_THEMES]; + extern const char *Txt_Nickname; + extern const char *Txt_Continue; + if (Gbl.Usrs.Me.Logged) { /***** Put link to show my public profile and users to follow *****/ @@ -169,23 +171,6 @@ void Prf_RequestUserProfile (void) fprintf (Gbl.F.Out,""); } - /* By default, the nickname is filled with my nickname - If no user logged ==> the nickname is empty */ - Prf_RequestUserProfileWithDefaultNickname (Gbl.Usrs.Me.UsrDat.Nickname); - } - -/*****************************************************************************/ -/*************** Request a user's profile with nickname filled ***************/ -/*****************************************************************************/ - -static void Prf_RequestUserProfileWithDefaultNickname (const char *DefaultNickname) - { - extern const char *Hlp_SOCIAL_Profiles_view_public_profile; - extern const char *Txt_Another_user_s_profile; - extern const char *The_ClassForm[The_NUM_THEMES]; - extern const char *Txt_Nickname; - extern const char *Txt_Continue; - /***** Start form *****/ Act_FormStart (ActSeeOthPubPrf); @@ -193,6 +178,8 @@ static void Prf_RequestUserProfileWithDefaultNickname (const char *DefaultNickna Lay_StartRoundFrame (NULL,Txt_Another_user_s_profile,NULL,Hlp_SOCIAL_Profiles_view_public_profile); /***** Form to request user's @nickname *****/ + /* By default, the nickname is filled with my nickname + If no user logged ==> the nickname is empty */ fprintf (Gbl.F.Out,"