Version 16.146.4

This commit is contained in:
Antonio Cañas Vargas 2017-03-04 01:50:22 +01:00
parent 4158ab6a71
commit 58f0fc9223
2 changed files with 4 additions and 18 deletions

View File

@ -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)

View File

@ -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,"<span class=\"%s\">%s %s</span>",
fprintf (Gbl.F.Out,"<div class=\"AUTHOR_1_LINE %s\">%s</div>",
Svy->Status.Visible ? "AUTHOR_TXT" :
"AUTHOR_TXT_LIGHT",
FirstName,Surnames);
UsrDat.FullName);
/***** Free memory used for user's data *****/
Usr_UsrDataDestructor (&UsrDat);