diff --git a/swad_changelog.h b/swad_changelog.h index c48f49ceb..b01ff6ad2 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -197,13 +197,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.146.3 (2017-03-04)" +#define Log_PLATFORM_VERSION "SWAD 16.146.4 (2017-03-04)" #define CSS_FILE "swad16.146.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.146.4: Mar 03, 2017 Changes in layout of surveys. (216349 lines) Version 16.146.3: Mar 04, 2017 Changes in layout of edition of institutions, centres and degrees. (216363 lines) Version 16.146.2: Mar 04, 2017 Changes in layout of authors. (216354 lines) Version 16.146.1: Mar 03, 2017 Changes in layout of assigments. (216350 lines) diff --git a/swad_survey.c b/swad_survey.c index e03c0e344..dc8d2b441 100644 --- a/swad_survey.c +++ b/swad_survey.c @@ -667,8 +667,6 @@ static void Svy_WriteAuthor (struct Survey *Svy) { bool ShowPhoto = false; char PhotoURL[PATH_MAX + 1]; - char FirstName[Usr_MAX_BYTES_NAME + 1]; - char Surnames[Usr_MAX_BYTES_SURNAMES + 1]; struct UsrData UsrDat; /***** Initialize structure with user's data *****/ @@ -685,23 +683,10 @@ static void Svy_WriteAuthor (struct Survey *Svy) "PHOTO15x20",Pho_ZOOM,false); /***** Write name *****/ - Str_Copy (FirstName,UsrDat.FirstName, - Usr_MAX_BYTES_NAME); - Str_Copy (Surnames,UsrDat.Surname1, - Usr_MAX_BYTES_SURNAMES); - if (UsrDat.Surname2[0]) - { - Str_Concat (Surnames," ", - Usr_MAX_BYTES_SURNAMES); - Str_Concat (Surnames,UsrDat.Surname2, - Usr_MAX_BYTES_SURNAMES); - } - Str_LimitLengthHTMLStr (FirstName,8); - Str_LimitLengthHTMLStr (Surnames,8); - fprintf (Gbl.F.Out,"%s %s", + fprintf (Gbl.F.Out,"
%s
", Svy->Status.Visible ? "AUTHOR_TXT" : "AUTHOR_TXT_LIGHT", - FirstName,Surnames); + UsrDat.FullName); /***** Free memory used for user's data *****/ Usr_UsrDataDestructor (&UsrDat);