Version 14.57.3

This commit is contained in:
Antonio Cañas Vargas 2015-01-18 17:11:29 +01:00
parent bd0d37e78a
commit 1f7eb8fa70
3 changed files with 6 additions and 3 deletions

View File

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

View File

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

View File

@ -3330,7 +3330,7 @@ static void Sta_ShowNumAccessesPerDegree (unsigned long NumRows,MYSQL_RES *mysql
fprintf (Gbl.F.Out,"<tr>"
"<td class=\"LOG\""
" style=\"text-align:right; vertical-align:top;\">");
if (DegCod >= 0)
if (DegCod > 0)
fprintf (Gbl.F.Out,"%lu",++Ranking);
fprintf (Gbl.F.Out,"&nbsp;"
"</td>");
@ -3486,7 +3486,7 @@ static void Sta_WriteDegree (long DegCod)
Deg_GetDataOfDegreeByCod (&Deg);
fprintf (Gbl.F.Out,"%s\">"
"<a href=\"%s\" class=\"LOG\" target=\"_blank\">",
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,"&nbsp;%s&nbsp;</a>",