From a5baf663c5c2cab99d57ce7d7938ad0a3d2c55a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Tue, 17 Mar 2015 02:01:30 +0100 Subject: [PATCH] Version 14.94.1 --- swad_changelog.h | 3 ++- swad_config.h | 4 ++-- swad_profile.c | 6 +++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index 7309cfebd..1a64878ea 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -103,11 +103,12 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 14.94 (2015/03/17)" +#define Log_PLATFORM_VERSION "SWAD 14.94.1 (2015/03/17)" // 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.94.1: Mar 17, 2015 Fixed bug in user's profile. (182667 lines) Version 14.94: Mar 17, 2015 Ranking for downloads, forum posts and messages in user's profile. (182666 lines) Version 14.93.4: Mar 17, 2015 Links in user's figures to ranking. (182661 lines) Version 14.93.3: Mar 16, 2015 Changes in rankings. (182630 lines) diff --git a/swad_config.h b/swad_config.h index 9356e2c96..a3e61274b 100644 --- a/swad_config.h +++ b/swad_config.h @@ -28,9 +28,9 @@ /** Uncomment one of the following installations of SWAD or create your own **/ /*****************************************************************************/ -#define LOCALHOST_UBUNTU // Comment this line if not applicable +//#define LOCALHOST_UBUNTU // Comment this line if not applicable //#define OPENSWAD_ORG // Comment this line if not applicable -//#define SWAD_UGR_ES // Comment this line if not applicable +#define SWAD_UGR_ES // Comment this line if not applicable //#define WWW_CEVUNA_UNA_PY // Comment this line if not applicable /*****************************************************************************/ diff --git a/swad_profile.c b/swad_profile.c index 649758a46..031ecf813 100644 --- a/swad_profile.c +++ b/swad_profile.c @@ -674,7 +674,7 @@ static void Prf_GetUsrFigures (long UsrCod,struct UsrFigures *UsrFigures) static unsigned long Prf_GetRankingFigure (long UsrCod,const char *FieldName) { - char Query[128]; + char Query[256]; /***** Select number of rows with figure greater than the figure of this user *****/ @@ -757,11 +757,11 @@ static void Prf_ShowRanking (unsigned long Rank,unsigned long NumUsrs) Sco_PutParamScope (Sco_SCOPE_SYS); Par_PutHiddenParamUnsigned ("UseStatType",(unsigned) Sta_USRS_RANKING); Act_LinkFormSubmit (Txt_Ranking,"RANK"); - fprintf (Gbl.F.Out,"#%ld",Rank); + fprintf (Gbl.F.Out,"#%lu",Rank); Act_FormEnd (); /***** Part of a total and end container *****/ - fprintf (Gbl.F.Out," %s %ld" + fprintf (Gbl.F.Out," %s %lu" "", Txt_of_PART_OF_A_TOTAL,NumUsrs); }