From 1f7eb8fa704a75855f32ca0e4d3090927bd09c98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Sun, 18 Jan 2015 17:11:29 +0100 Subject: [PATCH] Version 14.57.3 --- sql/cambios.sql | 2 ++ swad_changelog.h | 3 ++- swad_statistic.c | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sql/cambios.sql b/sql/cambios.sql index 3e2adfe99..647da0236 100644 --- a/sql/cambios.sql +++ b/sql/cambios.sql @@ -10453,3 +10453,5 @@ ALTER TABLE IP_prefs ADD COLUMN Menu TINYINT NOT NULL DEFAULT 0 AFTER IconSet; ALTER TABLE usr_data DROP COLUMN WWW,DROP COLUMN Twitter,DROP COLUMN Skype; + +SELECT DegCod,CtrCod,DegTypCod,Status,RequesterUsrCod,ShortName,FullName,FirstYear,LastYear,OptYear,WWW FROM degrees; \ No newline at end of file diff --git a/swad_changelog.h b/swad_changelog.h index 6846b413c..602b4af7b 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -39,11 +39,12 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 14.57.2 (2015/01/18)" +#define Log_PLATFORM_VERSION "SWAD 14.57.3 (2015/01/18)" // 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 | tail -1 /* + Version 14.57.3: Jan 18, 2015 Fixed bug in statistics. (173694 lines) Version 14.57.2: Jan 18, 2015 Icon of institution, centre or degree is not drawn on title when logo does not exist. (173693 lines) Version 14.57.1: Jan 17, 2015 Code refactoring related to logos of institutions, centres and degrees. (173674 lines) Version 14.57: Jan 17, 2015 New option to upload logo of degree. (173720 lines) diff --git a/swad_statistic.c b/swad_statistic.c index e44feec38..ab93b06d0 100644 --- a/swad_statistic.c +++ b/swad_statistic.c @@ -3330,7 +3330,7 @@ static void Sta_ShowNumAccessesPerDegree (unsigned long NumRows,MYSQL_RES *mysql fprintf (Gbl.F.Out,"" ""); - if (DegCod >= 0) + if (DegCod > 0) fprintf (Gbl.F.Out,"%lu",++Ranking); fprintf (Gbl.F.Out," " ""); @@ -3486,7 +3486,7 @@ static void Sta_WriteDegree (long DegCod) Deg_GetDataOfDegreeByCod (&Deg); fprintf (Gbl.F.Out,"%s\">" "", - Deg.WWW,Deg.FullName); + Deg.FullName,Deg.WWW); Log_DrawLogo (Sco_SCOPE_DEGREE,Deg.DegCod,Deg.ShortName, 16,"vertical-align:top;",true); fprintf (Gbl.F.Out," %s ",