diff --git a/sql/swad.sql b/sql/swad.sql index 2a3cebd3c..72da3ccf0 100644 --- a/sql/swad.sql +++ b/sql/swad.sql @@ -1176,6 +1176,7 @@ CREATE TABLE IF NOT EXISTS usr_figures ( UsrCod INT NOT NULL, FirstClickTime DATETIME NOT NULL, NumClicks INT NOT NULL DEFAULT -1, + NumFileViews INT NOT NULL DEFAULT -1, NumForPst INT NOT NULL DEFAULT -1, NumMsgSnt INT NOT NULL DEFAULT -1, PRIMARY KEY(UsrCod), diff --git a/swad_changelog.h b/swad_changelog.h index e60562fff..2039cdfc1 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -103,11 +103,12 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 14.92.1 (2015/03/14)" +#define Log_PLATFORM_VERSION "SWAD 14.92.2 (2015/03/15)" // 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 14.92.2: Mar 14, 2015 Fixed minor bug in photo edition. (182208 lines) Version 14.92.1: Mar 14, 2015 Changes on request of a nickname to view user's profile. (182205 lines) Version 14.92: Mar 14, 2015 New module swad_profile for public user's profile. (182202 lines) 1 change necessary in Makefile: diff --git a/swad_photo.c b/swad_photo.c index 22b9379d0..eeaf12a04 100644 --- a/swad_photo.c +++ b/swad_photo.c @@ -232,19 +232,20 @@ void Pho_ReqPhoto (const struct UsrData *UsrDat,bool PhotoExists,const char *Pho extern const char *Txt_Upload_photo; bool ItsMe = (UsrDat->UsrCod == Gbl.Usrs.Me.UsrDat.UsrCod); - fprintf (Gbl.F.Out,"
"); - /***** Write message about photo presence or ausence *****/ if (PhotoExists) // User has photo { /***** Forms to remove photo and make it public *****/ fprintf (Gbl.F.Out,"
"); Pho_PutLinkToRemoveUsrPhoto (UsrDat); - Pri_PutLinkToChangeMyPrivacy (); // Put link (form) to change my privacy + if (ItsMe) + Pri_PutLinkToChangeMyPrivacy (); // Put link (form) to change my privacy fprintf (Gbl.F.Out,"
"); /* Show photo */ + fprintf (Gbl.F.Out,"
"); Pho_ShowUsrPhoto (UsrDat,PhotoURL,"PHOTO150x200",Pho_ZOOM); + fprintf (Gbl.F.Out,"
"); } Lay_ShowAlert (Lay_INFO,Txt_You_can_send_a_file_with_an_image_in_jpg_format_); @@ -277,7 +278,6 @@ void Pho_ReqPhoto (const struct UsrData *UsrDat,bool PhotoExists,const char *Pho UsrDat->UsrCod, Txt_Upload_photo); Act_FormEnd (); - fprintf (Gbl.F.Out,"
"); } /*****************************************************************************/