diff --git a/icon/deg64x64.gif b/icon/deg64x64.gif index 9a09f085a..e88dada22 100644 Binary files a/icon/deg64x64.gif and b/icon/deg64x64.gif differ diff --git a/icon/iconset/awesome/action64x64/pie64x64.gif b/icon/iconset/awesome/action64x64/pie64x64.gif index 139fde263..847966c54 100644 Binary files a/icon/iconset/awesome/action64x64/pie64x64.gif and b/icon/iconset/awesome/action64x64/pie64x64.gif differ diff --git a/icon/iconset/awesome/action64x64/sta64x64.gif b/icon/iconset/awesome/action64x64/sta64x64.gif index 6ae2beb66..139fde263 100644 Binary files a/icon/iconset/awesome/action64x64/sta64x64.gif and b/icon/iconset/awesome/action64x64/sta64x64.gif differ diff --git a/icon/iconset/awesome/action64x64/stats64x64.gif b/icon/iconset/awesome/action64x64/stats64x64.gif index 6ae2beb66..6f7711a0e 100644 Binary files a/icon/iconset/awesome/action64x64/stats64x64.gif and b/icon/iconset/awesome/action64x64/stats64x64.gif differ diff --git a/swad_centre.c b/swad_centre.c index 70a37bb0f..77b180619 100644 --- a/swad_centre.c +++ b/swad_centre.c @@ -173,7 +173,8 @@ void Ctr_SeeCtrWithPendingDegs (void) " vertical-align:middle; background-color:%s;\">" "", BgColor,Ctr.WWW,Ctr.FullName); - Log_DrawLogo (Sco_SCOPE_CENTRE,Ctr.CtrCod,Ctr.ShortName,16,"vertical-align:top;"); + Log_DrawLogo (Sco_SCOPE_CENTRE,Ctr.CtrCod,Ctr.ShortName, + 16,"vertical-align:top;",true); fprintf (Gbl.F.Out,"" ""); @@ -290,7 +291,7 @@ static void Ctr_Configuration (bool PrintView) Gbl.CurrentCtr.Ctr.WWW, Gbl.CurrentCtr.Ctr.FullName); Log_DrawLogo (Sco_SCOPE_CENTRE,Gbl.CurrentCtr.Ctr.CtrCod, - Gbl.CurrentCtr.Ctr.ShortName,64,NULL); + Gbl.CurrentCtr.Ctr.ShortName,64,NULL,true); fprintf (Gbl.F.Out,"
%s",Gbl.CurrentCtr.Ctr.FullName); if (PutLink) fprintf (Gbl.F.Out,""); @@ -594,7 +595,8 @@ static void Ctr_ListOneCentreForSeeing (struct Centre *Ctr,unsigned NumCtr) "", TxtClass,BgColor, Ctr->WWW,Ctr->FullName); - Log_DrawLogo (Sco_SCOPE_CENTRE,Ctr->CtrCod,Ctr->ShortName,16,"vertical-align:top;"); + Log_DrawLogo (Sco_SCOPE_CENTRE,Ctr->CtrCod,Ctr->ShortName, + 16,"vertical-align:top;",true); fprintf (Gbl.F.Out,"" ""); @@ -1137,7 +1139,7 @@ static void Ctr_ListCentresForEdition (void) fprintf (Gbl.F.Out,"", Ctr->FullName); - Log_DrawLogo (Sco_SCOPE_CENTRE,Ctr->CtrCod,Ctr->ShortName,16,NULL); + Log_DrawLogo (Sco_SCOPE_CENTRE,Ctr->CtrCod,Ctr->ShortName,16,NULL,true); fprintf (Gbl.F.Out,""); /* Institution */ @@ -1922,7 +1924,7 @@ static void Ctr_PutFormToCreateCentre (void) /***** Centre logo *****/ fprintf (Gbl.F.Out,""); - Log_DrawLogo (Sco_SCOPE_CENTRE,-1L,"",16,NULL); + Log_DrawLogo (Sco_SCOPE_CENTRE,-1L,"",16,NULL,true); fprintf (Gbl.F.Out,""); /***** Institution *****/ diff --git a/swad_changelog.h b/swad_changelog.h index a1430ec85..6846b413c 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -39,11 +39,12 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 14.57.1 (2015/01/17)" +#define Log_PLATFORM_VERSION "SWAD 14.57.2 (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.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) 3 changes necessary in database: diff --git a/swad_chat.c b/swad_chat.c index bd1376c68..3c718c32d 100644 --- a/swad_chat.c +++ b/swad_chat.c @@ -185,7 +185,7 @@ void Cht_ShowListOfAvailableChatRooms (void) sprintf (ThisRoomShortName,"%s",Deg.ShortName); sprintf (ThisRoomFullName,"%s %s",Txt_Degree,Deg.ShortName); Cht_WriteLinkToChat1 (ThisRoomCode,ThisRoomShortName,ThisRoomFullName,1,IsLastItemInLevel); - Log_DrawLogo (Sco_SCOPE_DEGREE,Deg.DegCod,Deg.ShortName,16,NULL); + Log_DrawLogo (Sco_SCOPE_DEGREE,Deg.DegCod,Deg.ShortName,16,NULL,true); Cht_WriteLinkToChat2 (ThisRoomCode,ThisRoomFullName); /* Get my courses in this degree from database */ diff --git a/swad_course.c b/swad_course.c index 4aebce0fe..32ec5a8b1 100644 --- a/swad_course.c +++ b/swad_course.c @@ -212,7 +212,8 @@ static void Crs_Configuration (bool PrintView) " class=\"TITLE_LOCATION\" title=\"%s\">", Gbl.CurrentDeg.Deg.WWW, Gbl.CurrentDeg.Deg.FullName); - Log_DrawLogo (Sco_SCOPE_DEGREE,Gbl.CurrentDeg.Deg.DegCod,Gbl.CurrentDeg.Deg.ShortName,64,NULL); + Log_DrawLogo (Sco_SCOPE_DEGREE,Gbl.CurrentDeg.Deg.DegCod, + Gbl.CurrentDeg.Deg.ShortName,64,NULL,true); if (PutLink) fprintf (Gbl.F.Out,""); fprintf (Gbl.F.Out,"
%s" @@ -669,7 +670,8 @@ static void Crs_WriteListMyCoursesToSelectOne (void) Ins_PutParamInsCod (Ins.InsCod); Act_LinkFormSubmit (Act_GetActionTextFromDB (Act_Actions[ActSeeInsInf].ActCod,ActTxt), The_ClassFormul[Gbl.Prefs.Theme]); - Log_DrawLogo (Sco_SCOPE_INSTITUTION,Ins.InsCod,Ins.ShortName,16,"vertical-align:middle;"); + Log_DrawLogo (Sco_SCOPE_INSTITUTION,Ins.InsCod,Ins.ShortName, + 16,NULL,true); Highlight = (Gbl.CurrentCtr.Ctr.CtrCod <= 0 && Gbl.CurrentIns.Ins.InsCod == Ins.InsCod); if (Highlight) @@ -706,7 +708,8 @@ static void Crs_WriteListMyCoursesToSelectOne (void) Ctr_PutParamCtrCod (Ctr.CtrCod); Act_LinkFormSubmit (Act_GetActionTextFromDB (Act_Actions[ActSeeCtrInf].ActCod,ActTxt), The_ClassFormul[Gbl.Prefs.Theme]); - Log_DrawLogo (Sco_SCOPE_CENTRE,Ctr.CtrCod,Ctr.ShortName,16,"vertical-align:middle;"); + Log_DrawLogo (Sco_SCOPE_CENTRE,Ctr.CtrCod,Ctr.ShortName, + 16,NULL,true); Highlight = (Gbl.CurrentDeg.Deg.DegCod <= 0 && Gbl.CurrentCtr.Ctr.CtrCod == Ctr.CtrCod); if (Highlight) @@ -743,7 +746,8 @@ static void Crs_WriteListMyCoursesToSelectOne (void) Deg_PutParamDegCod (Deg.DegCod); Act_LinkFormSubmit (Act_GetActionTextFromDB (Act_Actions[ActSeeDegInf].ActCod,ActTxt), The_ClassFormul[Gbl.Prefs.Theme]); - Log_DrawLogo (Sco_SCOPE_DEGREE,Deg.DegCod,Deg.ShortName,16,NULL); + Log_DrawLogo (Sco_SCOPE_DEGREE,Deg.DegCod,Deg.ShortName, + 16,NULL,true); Highlight = (Gbl.CurrentCrs.Crs.CrsCod <= 0 && Gbl.CurrentDeg.Deg.DegCod == Deg.DegCod); if (Highlight) @@ -3315,7 +3319,7 @@ static void Crs_WriteRowCrsData (unsigned NumCrs,MYSQL_ROW row,bool WriteColumnA Deg_PutParamDegCod (Deg.DegCod); sprintf (Gbl.Title,Txt_Go_to_X,row[2]); Act_LinkFormSubmit (Gbl.Title,StyleNoBR); - Log_DrawLogo (Sco_SCOPE_DEGREE,Deg.DegCod,Deg.ShortName,64,NULL); + Log_DrawLogo (Sco_SCOPE_DEGREE,Deg.DegCod,Deg.ShortName,64,NULL,true); fprintf (Gbl.F.Out," %s (%s)" "" "" diff --git a/swad_degree.c b/swad_degree.c index c8d38152b..9b2c402d2 100644 --- a/swad_degree.c +++ b/swad_degree.c @@ -223,7 +223,8 @@ void Deg_SeeDegWithPendingCrss (void) "", BgColor,Deg.WWW,Deg.FullName); - Log_DrawLogo (Sco_SCOPE_DEGREE,Deg.DegCod,Deg.ShortName,16,"vertical-align:top;"); + Log_DrawLogo (Sco_SCOPE_DEGREE,Deg.DegCod,Deg.ShortName, + 16,"vertical-align:top;",true); fprintf (Gbl.F.Out,"" ""); @@ -325,7 +326,7 @@ static void Deg_Configuration (bool PrintView) Gbl.CurrentDeg.Deg.WWW, Gbl.CurrentDeg.Deg.FullName); Log_DrawLogo (Sco_SCOPE_DEGREE,Gbl.CurrentDeg.Deg.DegCod, - Gbl.CurrentDeg.Deg.ShortName,64,NULL); + Gbl.CurrentDeg.Deg.ShortName,64,NULL,true); fprintf (Gbl.F.Out,"
%s", Gbl.CurrentDeg.Deg.FullName); if (PutLink) @@ -728,21 +729,20 @@ void Deg_WriteBigNameCtyInsCtrDegCrs (void) Str_LimitLengthHTMLStr (FullName,Deg_MAX_LENGTH_FULL_NAME_ON_PAGE_HEAD); fprintf (Gbl.F.Out,"
", The_ClassCourse[Gbl.Prefs.Theme]); - if (Gbl.CurrentCrs.Crs.CrsCod <= 0 && - Gbl.Prefs.Theme == The_THEME_WHITE) // TODO: Remove this line + if (Gbl.CurrentCrs.Crs.CrsCod <= 0) { if (Gbl.CurrentDeg.Deg.DegCod > 0) Log_DrawLogo (Sco_SCOPE_DEGREE,Gbl.CurrentDeg.Deg.DegCod, Gbl.CurrentDeg.Deg.ShortName,32, - "vertical-align:top; margin-right:8px;"); + "vertical-align:top; margin-right:8px;",false); else if (Gbl.CurrentCtr.Ctr.CtrCod > 0) Log_DrawLogo (Sco_SCOPE_CENTRE,Gbl.CurrentCtr.Ctr.CtrCod, Gbl.CurrentCtr.Ctr.ShortName,32, - "vertical-align:top; margin-right:8px;"); + "vertical-align:top; margin-right:8px;",false); else if (Gbl.CurrentIns.Ins.InsCod > 0) Log_DrawLogo (Sco_SCOPE_INSTITUTION,Gbl.CurrentIns.Ins.InsCod, Gbl.CurrentIns.Ins.ShortName,32, - "vertical-align:top; margin-right:8px;"); + "vertical-align:top; margin-right:8px;",false); else if (Gbl.CurrentCty.Cty.CtyCod > 0) if (Cty_CheckIfCountryMapExists (&Gbl.CurrentCty.Cty)) Cty_DrawCountryMap (&Gbl.CurrentCty.Cty,"COUNTRY_MAP_TITLE"); @@ -1270,7 +1270,8 @@ static void Deg_ListOneDegreeForSeeing (struct Degree *Deg,unsigned NumDeg) "", TxtClass,BgColor, Deg->WWW,Deg->FullName); - Log_DrawLogo (Sco_SCOPE_DEGREE,Deg->DegCod,Deg->ShortName,16,"vertical-align:top;"); + Log_DrawLogo (Sco_SCOPE_DEGREE,Deg->DegCod,Deg->ShortName, + 16,"vertical-align:top;",true); fprintf (Gbl.F.Out,"" ""); @@ -1413,7 +1414,7 @@ static void Deg_ListDegreesForEdition (void) fprintf (Gbl.F.Out,"", Deg->FullName); - Log_DrawLogo (Sco_SCOPE_DEGREE,Deg->DegCod,Deg->ShortName,16,NULL); + Log_DrawLogo (Sco_SCOPE_DEGREE,Deg->DegCod,Deg->ShortName,16,NULL,true); fprintf (Gbl.F.Out,""); /* Centre */ @@ -1820,7 +1821,7 @@ static void Deg_PutFormToCreateDegree (void) /***** Degree logo *****/ fprintf (Gbl.F.Out,""); - Log_DrawLogo (Sco_SCOPE_DEGREE,-1L,"",16,NULL); + Log_DrawLogo (Sco_SCOPE_DEGREE,-1L,"",16,NULL,true); fprintf (Gbl.F.Out,""); /***** Centre *****/ @@ -3920,7 +3921,8 @@ void Deg_GetAndWriteDegreesAdminBy (long UsrCod,unsigned ColSpan) Deg_PutParamDegCod (DegCod); sprintf (Gbl.Title,Txt_Go_to_X,row[2]); Act_LinkFormSubmit (Gbl.Title,"DAT_SMALL_NOBR"); - Log_DrawLogo (Sco_SCOPE_DEGREE,DegCod,row[1],16,"vertical-align:top;"); + Log_DrawLogo (Sco_SCOPE_DEGREE,DegCod,row[1], + 16,"vertical-align:top;",true); fprintf (Gbl.F.Out," %s" "", row[2]); diff --git a/swad_exam.c b/swad_exam.c index 5b5676cf9..ea860dd63 100644 --- a/swad_exam.c +++ b/swad_exam.c @@ -791,7 +791,7 @@ static void Exa_ShowExamAnnouncement (long ExaCod,Exa_tTypeViewExamAnnouncement_ else fprintf (Gbl.F.Out,"", Ins.WWW,StyleTitle); - Log_DrawLogo (Sco_SCOPE_INSTITUTION,Ins.InsCod,Ins.FullName,64,NULL); + Log_DrawLogo (Sco_SCOPE_INSTITUTION,Ins.InsCod,Ins.FullName,64,NULL,true); fprintf (Gbl.F.Out,"
%s%s" \ "" \ "", diff --git a/swad_file_browser.c b/swad_file_browser.c index d3b0c3c37..9ee4e19a4 100644 --- a/swad_file_browser.c +++ b/swad_file_browser.c @@ -9563,7 +9563,8 @@ static void Brw_WriteRowDocData (unsigned *NumDocsNotHidden,MYSQL_ROW row) Deg_PutParamDegCod (DegCod); sprintf (Gbl.Title,Txt_Go_to_X,row[5]); Act_LinkFormSubmit (Gbl.Title,"DAT"); - Log_DrawLogo (Sco_SCOPE_DEGREE,DegCod,row[4],16,"vertical-align:top;"); + Log_DrawLogo (Sco_SCOPE_DEGREE,DegCod,row[4], + 16,"vertical-align:top;",true); fprintf (Gbl.F.Out," %s (%s)
" "", row[4],row[5]); diff --git a/swad_forum.c b/swad_forum.c index f4edc8590..a652fa4e5 100644 --- a/swad_forum.c +++ b/swad_forum.c @@ -2148,17 +2148,17 @@ static void For_WriteLinkToForum (For_ForumType_t ForumType,Act_Action_t NextAct case For_FORUM_INSTITUTION_USRS: case For_FORUM_INSTITUTION_TCHS: Log_DrawLogo (Sco_SCOPE_INSTITUTION,Gbl.Forum.Ins.InsCod,ForumName, - 16,"vertical-align:middle;"); + 16,NULL,true); break; case For_FORUM_CENTRE_USRS: case For_FORUM_CENTRE_TCHS: Log_DrawLogo (Sco_SCOPE_CENTRE,Gbl.Forum.Ctr.CtrCod,ForumName, - 16,"vertical-align:middle;"); + 16,NULL,true); break; case For_FORUM_DEGREE_USRS: case For_FORUM_DEGREE_TCHS: Log_DrawLogo (Sco_SCOPE_DEGREE,Gbl.Forum.Deg.DegCod,ForumName, - 16,"vertical-align:middle;"); + 16,NULL,true); break; default: fprintf (Gbl.F.Out,"%s",Icon); diff --git a/swad_institution.c b/swad_institution.c index fed9b8249..40a8dabae 100644 --- a/swad_institution.c +++ b/swad_institution.c @@ -163,7 +163,8 @@ void Ins_SeeInsWithPendingCtrs (void) " vertical-align:middle; background-color:%s;\">" "", BgColor,Ins.WWW,Ins.FullName); - Log_DrawLogo (Sco_SCOPE_INSTITUTION,Ins.InsCod,Ins.ShortName,16,"vertical-align:top;"); + Log_DrawLogo (Sco_SCOPE_INSTITUTION,Ins.InsCod,Ins.ShortName, + 16,"vertical-align:top;",true); fprintf (Gbl.F.Out,"" ""); @@ -267,7 +268,7 @@ static void Ins_Configuration (bool PrintView) Gbl.CurrentIns.Ins.WWW, Gbl.CurrentIns.Ins.FullName); Log_DrawLogo (Sco_SCOPE_INSTITUTION,Gbl.CurrentIns.Ins.InsCod, - Gbl.CurrentIns.Ins.ShortName,64,NULL); + Gbl.CurrentIns.Ins.ShortName,64,NULL,true); fprintf (Gbl.F.Out,"
%s",Gbl.CurrentIns.Ins.FullName); if (PutLink) fprintf (Gbl.F.Out,""); @@ -529,7 +530,8 @@ static void Ins_ListOneInstitutionForSeeing (struct Institution *Ins,unsigned Nu "", BgColor, Ins->WWW,Ins->FullName); - Log_DrawLogo (Sco_SCOPE_INSTITUTION,Ins->InsCod,Ins->ShortName,16,NULL); + Log_DrawLogo (Sco_SCOPE_INSTITUTION,Ins->InsCod,Ins->ShortName, + 16,NULL,true); fprintf (Gbl.F.Out,"" ""); @@ -1113,7 +1115,8 @@ static void Ins_ListInstitutionsForEdition (void) fprintf (Gbl.F.Out,"", Ins->FullName); - Log_DrawLogo (Sco_SCOPE_INSTITUTION,Ins->InsCod,Ins->ShortName,16,NULL); + Log_DrawLogo (Sco_SCOPE_INSTITUTION,Ins->InsCod,Ins->ShortName, + 16,NULL,true); fprintf (Gbl.F.Out,""); /* Country */ @@ -1732,7 +1735,7 @@ static void Ins_PutFormToCreateInstitution (void) /***** Institution logo *****/ fprintf (Gbl.F.Out,""); - Log_DrawLogo (Sco_SCOPE_INSTITUTION,-1L,"",16,NULL); + Log_DrawLogo (Sco_SCOPE_INSTITUTION,-1L,"",16,NULL,true); fprintf (Gbl.F.Out,""); /***** Country *****/ diff --git a/swad_layout.c b/swad_layout.c index ab0afa1bb..c9ea3fa91 100644 --- a/swad_layout.c +++ b/swad_layout.c @@ -1279,7 +1279,8 @@ void Lay_WriteHeaderClassPhoto (unsigned NumColumns,bool PrintView,bool DrawingC { if (!PrintView) fprintf (Gbl.F.Out,"",Ins.WWW); - Log_DrawLogo (Sco_SCOPE_INSTITUTION,Ins.InsCod,Ins.ShortName,Size,NULL); + Log_DrawLogo (Sco_SCOPE_INSTITUTION,Ins.InsCod,Ins.ShortName, + Size,NULL,true); if (!PrintView) fprintf (Gbl.F.Out,""); } @@ -1328,7 +1329,7 @@ void Lay_WriteHeaderClassPhoto (unsigned NumColumns,bool PrintView,bool DrawingC if (!PrintView) fprintf (Gbl.F.Out,"", Deg.WWW); - Log_DrawLogo (Sco_SCOPE_DEGREE,Deg.DegCod,Deg.ShortName,Size,NULL); + Log_DrawLogo (Sco_SCOPE_DEGREE,Deg.DegCod,Deg.ShortName,Size,NULL,true); if (!PrintView) fprintf (Gbl.F.Out,""); } diff --git a/swad_logo.c b/swad_logo.c index 315aa560f..7b4b9e7c8 100644 --- a/swad_logo.c +++ b/swad_logo.c @@ -63,7 +63,7 @@ extern struct Globals Gbl; /*****************************************************************************/ void Log_DrawLogo (Sco_Scope_t Scope,long Cod,const char *AltText, - unsigned Size,const char *Style) + unsigned Size,const char *Style,bool PutIconIfNotExists) { const char *Folder; const char *Icon; @@ -102,23 +102,26 @@ void Log_DrawLogo (Sco_Scope_t Scope,long Cod,const char *AltText, else LogoExists = false; - /***** Draw logo *****/ - fprintf (Gbl.F.Out,"\"%s\""); + if (LogoExists || PutIconIfNotExists) + { + /***** Draw logo *****/ + fprintf (Gbl.F.Out,"\"%s\""); + } } /*****************************************************************************/ diff --git a/swad_logo.h b/swad_logo.h index 154e6eb65..99ebb924b 100644 --- a/swad_logo.h +++ b/swad_logo.h @@ -40,7 +40,7 @@ /*****************************************************************************/ void Log_DrawLogo (Sco_Scope_t Scope,long Cod,const char *AltText, - unsigned Size,const char *Style); + unsigned Size,const char *Style,bool PutIconIfNotExists); void Log_PutFormToChangeLogo (Sco_Scope_t Scope); void Log_RequestLogo (Sco_Scope_t Scope); void Log_ReceiveLogo (Sco_Scope_t Scope); diff --git a/swad_photo.c b/swad_photo.c index 5cf22eb89..0b7ed243f 100644 --- a/swad_photo.c +++ b/swad_photo.c @@ -1984,7 +1984,8 @@ static void Pho_ShowOrPrintListDegrees (Pho_AvgPhotoSeeOrPrint_t SeeOrPrint) if (SeeOrPrint == Pho_DEGREES_SEE) fprintf (Gbl.F.Out,"", Deg.WWW,Deg.FullName); - Log_DrawLogo (Sco_SCOPE_DEGREE,Deg.DegCod,Deg.ShortName,16,"vertical-align:top;"); + Log_DrawLogo (Sco_SCOPE_DEGREE,Deg.DegCod,Deg.ShortName, + 16,"vertical-align:top;",true); fprintf (Gbl.F.Out," %s ", Deg.ShortName); if (SeeOrPrint == Pho_DEGREES_SEE) diff --git a/swad_record.c b/swad_record.c index 281a7912c..4f61516c6 100644 --- a/swad_record.c +++ b/swad_record.c @@ -1531,7 +1531,7 @@ void Rec_ShowCrsRecord (Rec_RecordViewType_t TypeOfView,struct UsrData *UsrDat) "", Rec_DEGREE_LOGO_SIZE); Log_DrawLogo (Sco_SCOPE_DEGREE,Gbl.CurrentDeg.Deg.DegCod, - Gbl.CurrentDeg.Deg.ShortName,Rec_DEGREE_LOGO_SIZE,NULL); + Gbl.CurrentDeg.Deg.ShortName,Rec_DEGREE_LOGO_SIZE,NULL,true); fprintf (Gbl.F.Out,"" "" "%s
%s
%s" @@ -2144,7 +2144,7 @@ void Rec_ShowCommonRecord (Rec_RecordViewType_t TypeOfView, Ins.InsCod = UsrDat->InsCod; Ins_GetDataOfInstitutionByCod (&Ins,Ins_GET_MINIMAL_DATA); Log_DrawLogo (Sco_SCOPE_INSTITUTION,Ins.InsCod,Ins.ShortName, - Rec_INSTITUTION_LOGO_SIZE,NULL); + Rec_INSTITUTION_LOGO_SIZE,NULL,true); fprintf (Gbl.F.Out,"" "" diff --git a/swad_statistic.c b/swad_statistic.c index bbd5b8d78..e44feec38 100644 --- a/swad_statistic.c +++ b/swad_statistic.c @@ -3487,7 +3487,8 @@ static void Sta_WriteDegree (long DegCod) fprintf (Gbl.F.Out,"%s\">" "
", Deg.WWW,Deg.FullName); - Log_DrawLogo (Sco_SCOPE_DEGREE,Deg.DegCod,Deg.ShortName,16,"vertical-align:top;"); + Log_DrawLogo (Sco_SCOPE_DEGREE,Deg.DegCod,Deg.ShortName, + 16,"vertical-align:top;",true); fprintf (Gbl.F.Out," %s ", Deg.ShortName); }