From 89e55e411d14700671ac85cbc009cdf17aeaf395 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Mon, 29 Dec 2014 21:35:12 +0100 Subject: [PATCH] Version 14.47.4 --- swad_QR.c | 39 +++++++++++++++++++-------------------- swad_assignment.c | 2 +- swad_attendance.c | 2 +- swad_banner.c | 7 +++++-- swad_changelog.h | 3 ++- swad_file_browser.c | 3 ++- swad_info.c | 4 ++-- swad_layout.c | 13 +++++++------ swad_mail.c | 12 ++++++++---- swad_main.c | 4 ++-- swad_notification.c | 6 ++++-- swad_photo.c | 23 ++++++++++++++++------- swad_plugin.c | 9 ++++++--- swad_statistic.c | 28 ++++++++++++++++++---------- swad_survey.c | 9 ++++++--- swad_test.c | 19 ++++++++++--------- swad_timetable.c | 3 ++- swad_user.c | 4 ++-- 18 files changed, 113 insertions(+), 77 deletions(-) diff --git a/swad_QR.c b/swad_QR.c index 78aab1cd5..9c98c1038 100644 --- a/swad_QR.c +++ b/swad_QR.c @@ -125,15 +125,15 @@ static void QR_ImageQRCode (const char *QRString) { fprintf (Gbl.F.Out,"
" "\"%s\""
" + " alt=\"%s\" style=\"width:%upx; height:%upx;" + " border:1px dashed silver;\" />
" "%s" "
", QR_CODE_SIZE, QR_CODE_SIZE,QR_CODE_SIZE, QRString, - QR_CODE_SIZE,QR_CODE_SIZE, QRString, + QR_CODE_SIZE,QR_CODE_SIZE, QRString); } @@ -147,11 +147,11 @@ void QR_LinkToCountry (unsigned Size) /***** Show QR code with direct link to the current centre *****/ fprintf (Gbl.F.Out,"\"%s\"", + " alt=\"%s\" style=\"width:%upx; height:%upx;\" />", Size,Size, Cfg_HTTPS_URL_SWAD_CGI,Gbl.CurrentCty.Cty.CtyCod, - Size,Size, - Txt_Shortcut_to_this_country); + Txt_Shortcut_to_this_country, + Size,Size); } /*****************************************************************************/ @@ -164,11 +164,11 @@ void QR_LinkToInstitution (unsigned Size) /***** Show QR code with direct link to the current institution *****/ fprintf (Gbl.F.Out,"\"%s\"", + " alt=\"%s\" style=\"width:%upx; height:%upx;\" />", Size,Size, Cfg_HTTPS_URL_SWAD_CGI,Gbl.CurrentIns.Ins.InsCod, - Size,Size, - Txt_Shortcut_to_this_institution); + Txt_Shortcut_to_this_institution, + Size,Size); } /*****************************************************************************/ @@ -181,11 +181,11 @@ void QR_LinkToCentre (unsigned Size) /***** Show QR code with direct link to the current centre *****/ fprintf (Gbl.F.Out,"\"%s\"", + " alt=\"%s\" style=\"width:%upx; height:%upx;\" />", Size,Size, Cfg_HTTPS_URL_SWAD_CGI,Gbl.CurrentCtr.Ctr.CtrCod, - Size,Size, - Txt_Shortcut_to_this_centre); + Txt_Shortcut_to_this_centre, + Size,Size); } /*****************************************************************************/ @@ -198,11 +198,11 @@ void QR_LinkToDegree (unsigned Size) /***** Show QR code with direct link to the current degree *****/ fprintf (Gbl.F.Out,"\"%s\"", + " alt=\"%s\" style=\"width:%upx; height:%upx;\" />", Size,Size, Cfg_HTTPS_URL_SWAD_CGI,Gbl.CurrentDeg.Deg.DegCod, - Size,Size, - Txt_Shortcut_to_this_degree); + Txt_Shortcut_to_this_degree, + Size,Size); } /*****************************************************************************/ @@ -215,11 +215,11 @@ void QR_LinkToCourse (unsigned Size) /***** Show QR code with direct link to the current course *****/ fprintf (Gbl.F.Out,"\"%s\"", + " alt=\"%s\" style=\"width:%upx; height:%upx;\" />", Size,Size, Cfg_HTTPS_URL_SWAD_CGI,Gbl.CurrentCrs.Crs.CrsCod, - Size,Size, - Txt_Shortcut_to_this_course); + Txt_Shortcut_to_this_course, + Size,Size); } /*****************************************************************************/ @@ -233,10 +233,9 @@ void QR_ExamAnnnouncement (void) /***** Show QR code with direct link to the exam announcement *****/ fprintf (Gbl.F.Out,"
" "\"%s\"" + " alt=\"%s\" style=\"width:200px; height:200px;\" />" "
", 200,200, Cfg_HTTPS_URL_SWAD_CGI,Gbl.CurrentCrs.Crs.CrsCod,Act_Actions[ActSeeExaAnn].ActCod, - 200,200, Txt_Link_to_announcement_of_exam); } diff --git a/swad_assignment.c b/swad_assignment.c index e228a2d04..ebf413eb1 100644 --- a/swad_assignment.c +++ b/swad_assignment.c @@ -335,7 +335,7 @@ static void Asg_ShowOneAssignment (long AsgCod) if (Gbl.CurrentCrs.Grps.NumGrps) Asg_GetAndWriteNamesOfGrpsAssociatedToAsg (&Asg); - fprintf (Gbl.F.Out,"

" + fprintf (Gbl.F.Out,"

" "%s
 

" "" "", diff --git a/swad_attendance.c b/swad_attendance.c index eda990909..03bcc11a9 100644 --- a/swad_attendance.c +++ b/swad_attendance.c @@ -354,7 +354,7 @@ static void Att_ShowOneAttEvent (struct AttendanceEvent *Att,bool ShowOnlyThisAt if (Gbl.CurrentCrs.Grps.NumGrps) Att_GetAndWriteNamesOfGrpsAssociatedToAttEvent (Att); - fprintf (Gbl.F.Out,"

%s

", + fprintf (Gbl.F.Out,"

%s

", Att->Hidden ? "DAT_LIGHT" : "DAT", Txt); diff --git a/swad_banner.c b/swad_banner.c index 146251fa5..8732142a1 100644 --- a/swad_banner.c +++ b/swad_banner.c @@ -100,7 +100,9 @@ void Ban_SeeBanners (void) fprintf (Gbl.F.Out,"" "" "" - "\"%s\"" + "\"%s\""" + "" "" "", Gbl.Banners.Lst[NumBan].WWW, @@ -920,7 +922,8 @@ void Ban_WriteMenuWithBanners (void) Par_PutHiddenParamString ("URL",Gbl.Banners.Lst[NumBan].WWW); fprintf (Gbl.F.Out,"" - "\"%s\"" + "\"%s\""" "" "" "" diff --git a/swad_changelog.h b/swad_changelog.h index 7e3775c5b..98357e186 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -35,11 +35,12 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 14.47.3 (2014/12/29)" +#define Log_PLATFORM_VERSION "SWAD 14.47.4 (2014/12/29)" // 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.47.4 :Dic 29, 2014 Changes in HTML and CSS. (174535 lines) Version 14.47.3 :Dic 29, 2014 Removed old code not used. (174499 lines) Version 14.47.2 :Dic 29, 2014 Changes in listing of chat rooms, forums and user's courses. (174677 lines) Version 14.47.1 :Dic 29, 2014 Changes in listing of chat rooms, forums and user's courses. diff --git a/swad_file_browser.c b/swad_file_browser.c index d697d853d..b3c705026 100644 --- a/swad_file_browser.c +++ b/swad_file_browser.c @@ -4313,7 +4313,8 @@ static void Brw_PutIconFile (unsigned Size,Brw_FileType_t FileType,const char *F fprintf (Gbl.F.Out,"xxx%ux%u.gif\" alt=\"\"", Size,Size); } - fprintf (Gbl.F.Out," width=\"%u\" height=\"%u\" style=\"vertical-align:middle;\" />", + fprintf (Gbl.F.Out," style=\"width:%upx; height:%upx;" + " vertical-align:middle;\" />", Size,Size); } diff --git a/swad_info.c b/swad_info.c index 4d2152ef0..5449b990c 100644 --- a/swad_info.c +++ b/swad_info.c @@ -1577,7 +1577,7 @@ static void Inf_ShowTxtInfo (Inf_InfoType_t InfoType) Lay_WriteHeaderClassPhoto (3,false,false,Gbl.CurrentIns.Ins.InsCod,Gbl.CurrentDeg.Deg.DegCod,Gbl.CurrentCrs.Crs.CrsCod); fprintf (Gbl.F.Out,"" "" - "

"); + "

"); /***** Convert to respectful HTML and insert links *****/ Str_ChangeFormat (Str_FROM_HTML,Str_TO_RIGOROUS_HTML, @@ -1643,7 +1643,7 @@ int Inf_WritePlainTextIntoHTMLBuffer (Inf_InfoType_t InfoType,char **HTMLBuffer) /***** Write plain text into text buffer *****/ fprintf (FileHTMLTmp,"" "" - "

"); + "

"); /* Convert to respectful HTML and insert links */ Str_ChangeFormat (Str_FROM_HTML,Str_TO_RIGOROUS_HTML, diff --git a/swad_layout.c b/swad_layout.c index 986fc784b..adbd1bc71 100644 --- a/swad_layout.c +++ b/swad_layout.c @@ -1454,8 +1454,8 @@ static void Lay_ShowRightColumn (void) "" "" - "\"SWADroid\"" + "\"SWADroid\""" "" "" "", @@ -1759,13 +1759,14 @@ void Lay_WritePageFooter (void) /***** Institution and centre hosting the platform *****/ fprintf (Gbl.F.Out,"" - "\"%s\"" + "\"%s\""" "

%s
" "", Cfg_ABOUT_URL, Gbl.Prefs.IconsURL,Cfg_ABOUT_LOGO, - Cfg_ABOUT_LOGO_WIDTH,Cfg_ABOUT_LOGO_HEIGHT, Cfg_ABOUT_NAME, + Cfg_ABOUT_LOGO_WIDTH,Cfg_ABOUT_LOGO_HEIGHT, Cfg_ABOUT_NAME); fprintf (Gbl.F.Out,"
" @@ -2025,8 +2026,8 @@ void Lay_AdvertisementMobile (void) "" "%s

" - "\"SWADroid\"" + "\"SWADroid\""" "
" "" "", diff --git a/swad_mail.c b/swad_mail.c index 401ecd668..e93c6da2c 100644 --- a/swad_mail.c +++ b/swad_mail.c @@ -813,14 +813,16 @@ void Mai_WriteMenuWithMailDomains (void) fprintf (Gbl.F.Out,"" "" "" "" "" "", Gbl.Prefs.IconsURL,Gbl.Prefs.IconsURL,Gbl.Prefs.IconsURL); @@ -852,12 +854,14 @@ void Mai_WriteMenuWithMailDomains (void) /***** End table *****/ fprintf (Gbl.F.Out,"" "" "" "" "" "
" - "\"\"" + "\"\""" "" "" - "\"\"" + "\"\""" "
" - "\"\"" + "\"\""" "" "" - "\"\"" + "\"\""" "
" diff --git a/swad_main.c b/swad_main.c index 08f043e3a..7774f1b9f 100644 --- a/swad_main.c +++ b/swad_main.c @@ -77,8 +77,8 @@ int main (int argc, char *argv[]) "" "%s" "



" - "

%s está parado por mantenimiento

" - "

Intente acceder más tarde, por favor.

" + "

%s está parado por mantenimiento

" + "

Intente acceder más tarde, por favor.

" "" "", Cfg_PLATFORM_FULL_NAME, diff --git a/swad_notification.c b/swad_notification.c index 2522c567b..604147414 100644 --- a/swad_notification.c +++ b/swad_notification.c @@ -1806,8 +1806,10 @@ void Ntf_WriteNumberOfNewNtfs (void) if (NumNewNtfs) { /***** Blinking icon *****/ - fprintf (Gbl.F.Out,"
", + fprintf (Gbl.F.Out,"
" + " ", Gbl.Prefs.IconsURL); /***** Number of new notifications *****/ diff --git a/swad_photo.c b/swad_photo.c index 85da962ba..b225af0f3 100644 --- a/swad_photo.c +++ b/swad_photo.c @@ -683,7 +683,8 @@ static void Pho_UpdatePhoto2 (void) NumPhoto++) fprintf (Gbl.F.Out,"" - "" + "" "
%s" "", Cfg_HTTPS_URL_SWAD_PUBLIC,Cfg_FOLDER_PHOTO,Cfg_FOLDER_PHOTO_TMP, @@ -985,7 +986,7 @@ void Pho_ShowUsrPhoto (const struct UsrData *UsrDat,const char *PhotoURL, else if (Width == 15 && Height == 20) fprintf (Gbl.F.Out,"\" class=\"F15x20\""); else if (Width == 18 && Height == 24) - fprintf (Gbl.F.Out,"\" class=\"F18x24\" width=\"18\" height=\"24\""); // Here width and height are written explicitely in order to allow copy-paste to Excel + fprintf (Gbl.F.Out,"\" class=\"F18x24\" style=\"width:18px; height:24px;\""); // Here width and height are written explicitely in order to allow copy-paste to Excel else if (Width == 24 && Height == 32) fprintf (Gbl.F.Out,"\" class=\"F24x32\""); else if (Width == 36 && Height == 48) @@ -999,7 +1000,9 @@ void Pho_ShowUsrPhoto (const struct UsrData *UsrDat,const char *PhotoURL, else if (Width == 150 && Height == 200) fprintf (Gbl.F.Out,"\" class=\"F150x200\""); else - fprintf (Gbl.F.Out,"\" width=\"%d\" height=\"%d\" align=\"middle\"",Width,Height); + fprintf (Gbl.F.Out,"\" style=\"width:%dpx; height:%dpx;" + " vertical-align:middle;\"", + Width,Height); if (Zoom && PhotoURL && (Width != Pho_PHOTO_REAL_WIDTH || Height != Pho_PHOTO_REAL_HEIGHT)) @@ -2123,10 +2126,14 @@ static void Pho_ShowDegreeAvgPhotoAndStat (struct Degree *Deg,Pho_AvgPhotoSeeOrP Cfg_HTTPS_URL_SWAD_PUBLIC,Cfg_FOLDER_PHOTO, Pho_StrAvgPhotoDirs[Gbl.Stat.DegPhotos.TypeOfAverage], Deg->DegCod,Usr_StringsSexDB[Sex]); - fprintf (Gbl.F.Out,"%s\" width=\"%u\" height=\"%u\"",PhotoURL,PhotoWidth,PhotoHeight); + fprintf (Gbl.F.Out,"%s\" style=\"width:%upx; height:%upx;\"", + PhotoURL,PhotoWidth,PhotoHeight); if (SeeOrPrint == Pho_DEGREES_SEE) { - sprintf (PhotoCaption,"%s
%d %s (%s)
%d %s (%d%%)
%02u/%02u/%04u", + sprintf (PhotoCaption,"%s
" + "%d %s (%s)
" + "%d %s (%d%%)
" + "%02u/%02u/%04u", Deg->ShortName, NumStds,Txt_students_ABBREVIATION,Txt_SEX_PLURAL_abc[Sex], NumStdsWithPhoto,Txt_photos, @@ -2138,11 +2145,13 @@ static void Pho_ShowDegreeAvgPhotoAndStat (struct Degree *Deg,Pho_AvgPhotoSeeOrP } } else - fprintf (Gbl.F.Out,"%s/usr_bl.jpg\" width=\"%u\" height=\"%u\"", + fprintf (Gbl.F.Out,"%s/usr_bl.jpg\"" + " style=\"width:%upx; height:%upx;\"", Gbl.Prefs.IconsURL,PhotoWidth,PhotoHeight); } else - fprintf (Gbl.F.Out,"%s/usr_bl.jpg\" width=\"%u\" height=\"%u\"", + fprintf (Gbl.F.Out,"%s/usr_bl.jpg\"" + " style=\"width:%upx; height:%upx;\"", Gbl.Prefs.IconsURL,PhotoWidth,PhotoHeight); fprintf (Gbl.F.Out," alt=\"%s\" />",Deg->FullName); if (SeeOrPrint == Pho_DEGREES_PRINT) diff --git a/swad_plugin.c b/swad_plugin.c index 90fac762f..48ef27ccd 100644 --- a/swad_plugin.c +++ b/swad_plugin.c @@ -121,7 +121,8 @@ void Plg_ListPlugins (void) "" "" - "\"%s\"" + "\"%s\""" "" "" "" @@ -386,9 +387,11 @@ static void Plg_ListPluginsForEdition (void) /* Plugin logo */ fprintf (Gbl.F.Out,"" - "\"%s\"" + "\"%s\""" "", - Gbl.Prefs.IconsURL,Cfg_ICON_FOLDER_PLUGINS,Gbl.Plugins.Lst[NumPlg].Logo,Gbl.Plugins.Lst[NumPlg].Name); + Gbl.Prefs.IconsURL,Cfg_ICON_FOLDER_PLUGINS, + Gbl.Plugins.Lst[NumPlg].Logo,Gbl.Plugins.Lst[NumPlg].Name); /* Plugin name */ fprintf (Gbl.F.Out,"%s" "" "" - "

%s

" - "

← %s

" + "

%s

" + "

" + "← %s" + "

" "" "", Txt_STR_LANG_ID[Gbl.Prefs.Language], @@ -1292,7 +1294,7 @@ static bool Sta_SeeAccesses (void) } Lay_WriteTitle (Gbl.Message); Sta_WriteSelectedRangeOfDates (NumDays); - fprintf (Gbl.F.Out,"

"); + fprintf (Gbl.F.Out,"

"); if (Gbl.Stat.Role == Sta_ME) fprintf (Gbl.F.Out,"%s: %s", Txt_User, @@ -1305,7 +1307,7 @@ static bool Sta_SeeAccesses (void) break; } - fprintf (Gbl.F.Out,"

%s: %s

", + fprintf (Gbl.F.Out,"

%s: %s

", Txt_Action, Act_GetActionTextFromDB (Act_Actions[Gbl.Stat.NumAction].ActCod,ActTxt)); @@ -1808,7 +1810,10 @@ static void Sta_ShowNumAccessesPerUsr (unsigned long NumRows,MYSQL_RES *mysql_re " vertical-align:top; background-color:%s;\">", Gbl.ColorRows[Gbl.RowEvenOdd]); if (BarWidth) - fprintf (Gbl.F.Out,"\"\" ", + fprintf (Gbl.F.Out,"\"\""" + " ", Gbl.Prefs.IconsURL, UsrDat.RoleInCurrentCrsDB == Rol_ROLE_STUDENT ? 'c' : 'v', @@ -2729,7 +2734,8 @@ static void Sta_WriteAccessHour (unsigned Hour,float NumPagesGenerated,float Max AltoBarra = (unsigned) (((NumPagesGenerated * 400.0) / MaxPagesGenerated) + 0.5); if (AltoBarra == 0) AltoBarra = 1; - fprintf (Gbl.F.Out,"\"\"
", + fprintf (Gbl.F.Out,"\"\""
", Gbl.Prefs.IconsURL,AltoBarra); } else @@ -3475,7 +3481,9 @@ static void Sta_DrawBarNumClicks (char Color,float NumPagesGenerated,float MaxPa BarWidth = (unsigned) (((NumPagesGenerated * (float) MaxBarWidth) / MaxPagesGenerated) + 0.5); if (BarWidth == 0) BarWidth = 1; - fprintf (Gbl.F.Out,"\"\"" + fprintf (Gbl.F.Out,"\"\""" " ", Gbl.Prefs.IconsURL,Color,BarWidth); @@ -3524,7 +3532,7 @@ static void Sta_WriteSelectedRangeOfDates (unsigned NumDays) char StrDatesRange[1024]; sprintf (StrDateIni,"%02u/%02u/%04u",Gbl.DateRange.DateIni.Day,Gbl.DateRange.DateIni.Month,Gbl.DateRange.DateIni.Year); - fprintf (Gbl.F.Out,"

"); + fprintf (Gbl.F.Out,"

"); if (NumDays == 1) fprintf (Gbl.F.Out,"%s: %s (%s)",Txt_Date,StrDateIni,Txt_one_day); else @@ -3859,7 +3867,7 @@ static void Sta_GetAndShowNumCtysInSWAD (void) /***** Write number of countries *****/ fprintf (Gbl.F.Out,"" - "" + "" "%s:" "" "" @@ -5736,7 +5744,7 @@ static void Sta_WriteForumTotalStats (struct Sta_StatsForum *StatsForum) /***** Write forum name and stats *****/ fprintf (Gbl.F.Out,"" - "" + "" "" "" "%s" diff --git a/swad_survey.c b/swad_survey.c index f170f13d4..b6815252a 100644 --- a/swad_survey.c +++ b/swad_survey.c @@ -512,7 +512,7 @@ static void Svy_ShowOneSurvey (long SvyCod,struct SurveyQuestion *SvyQst,bool Sh Str_ChangeFormat (Str_FROM_HTML,Str_TO_RIGOROUS_HTML, Txt,Cns_MAX_BYTES_TEXT,false); // Convert from HTML to recpectful HTML Str_InsertLinkInURLs (Txt,Cns_MAX_BYTES_TEXT,60); // Insert links - fprintf (Gbl.F.Out,"

" + fprintf (Gbl.F.Out,"

" "
%s
 

" "", Svy.Status.Visible ? "DAT" : @@ -3158,7 +3158,7 @@ static void Svy_WriteQstStem (const char *Stem,const char *TextStyle) /* Write the stem */ fprintf (Gbl.F.Out,"" - "

" + "

" "%s" "

", TextStyle,Gbl.ColorRows[Gbl.RowEvenOdd],HeadingRigorousHTML); @@ -3269,7 +3269,10 @@ static void Svy_DrawBarNumUsrs (unsigned NumUsrs,unsigned MaxUsrs) (float) MaxUsrs) + 0.5); if (BarWidth < 2) BarWidth = 2; - fprintf (Gbl.F.Out,"\"\" ", + fprintf (Gbl.F.Out,"\"\""" + " ", Gbl.Prefs.IconsURL,BarWidth); /***** Write the number of users *****/ diff --git a/swad_test.c b/swad_test.c index 103a9e426..662dcc423 100644 --- a/swad_test.c +++ b/swad_test.c @@ -982,7 +982,7 @@ void Tst_WriteQstStem (const char *Stem,const char *ClassStem) StemRigorousHTML,StemLength,false); /***** Write the stem *****/ - fprintf (Gbl.F.Out,"

" + fprintf (Gbl.F.Out,"

" "%s" "

", ClassStem,StemRigorousHTML); @@ -1013,7 +1013,7 @@ void Tst_WriteQstFeedback (const char *Feedback,const char *ClassFeedback) FeedbackRigorousHTML,FeedbackLength,false); /***** Write the feedback *****/ - fprintf (Gbl.F.Out,"

" + fprintf (Gbl.F.Out,"

" "%s" "

", ClassFeedback,FeedbackRigorousHTML); @@ -2792,7 +2792,7 @@ static void Tst_WriteAnswersOfAQstEdit (long QstCod) /* Write the text of the answer */ fprintf (Gbl.F.Out,"" - "

" + "

" "%s" "

" "", @@ -2803,7 +2803,7 @@ static void Tst_WriteAnswersOfAQstEdit (long QstCod) " style=\"text-align:left;" " vertical-align:top;\">"); if (LengthFeedback) - fprintf (Gbl.F.Out,"

" + fprintf (Gbl.F.Out,"

" "%s" "

", Feedback); @@ -3083,7 +3083,7 @@ static void Tst_WriteChoiceAnsSeeExam (unsigned NumQst,long QstCod,bool Shuffle) /***** Write the option text *****/ fprintf (Gbl.F.Out,"" - "

" + "

" "%s" "

" "" @@ -3246,14 +3246,14 @@ static void Tst_WriteChoiceAnsAssessExam (unsigned NumQst,MYSQL_RES *mysql_res, /* Answer text and feedback */ fprintf (Gbl.F.Out,"" - "

" + "

" "%s" "

", Gbl.Test.Answer.Options[Indexes[NumOpt]].Text); if (Gbl.Test.Config.FeedbackType == Tst_FEEDBACK_FULL_FEEDBACK) if (Gbl.Test.Answer.Options[Indexes[NumOpt]].Feedback) if (Gbl.Test.Answer.Options[Indexes[NumOpt]].Feedback[0]) - fprintf (Gbl.F.Out,"

" + fprintf (Gbl.F.Out,"

" "%s" "

", Gbl.Test.Answer.Options[Indexes[NumOpt]].Feedback); @@ -3452,14 +3452,15 @@ static void Tst_WriteTextAnsAssessExam (unsigned NumQst,MYSQL_RES *mysql_res, /* Answer text and feedback */ fprintf (Gbl.F.Out,"" - "

" + "

" "%s" "

", Gbl.Test.Answer.Options[NumOpt].Text); if (Gbl.Test.Config.FeedbackType == Tst_FEEDBACK_FULL_FEEDBACK) if (Gbl.Test.Answer.Options[NumOpt].Feedback) if (Gbl.Test.Answer.Options[NumOpt].Feedback[0]) - fprintf (Gbl.F.Out,"

" + fprintf (Gbl.F.Out,"

" "%s" "

", Gbl.Test.Answer.Options[NumOpt].Feedback); diff --git a/swad_timetable.c b/swad_timetable.c index 0807309a3..a190cf8b5 100644 --- a/swad_timetable.c +++ b/swad_timetable.c @@ -1130,7 +1130,8 @@ static void TT_TimeTableDrawCell (unsigned Day,unsigned Hour,unsigned Column,uns case TT_CRS_SHOW: case TT_TUT_SHOW: if (HourType == TT_FREE_HOUR) // If cell is empty... - fprintf (Gbl.F.Out,"", + fprintf (Gbl.F.Out,"", Gbl.Prefs.IconsURL); else { diff --git a/swad_user.c b/swad_user.c index 52773a601..0d67e1560 100644 --- a/swad_user.c +++ b/swad_user.c @@ -1376,8 +1376,8 @@ void Usr_WelcomeUsr (void) if ((CongratulateMyBirthday = Usr_CheckIfMyBirthdayHasNotBeenCongratulated ())) { Usr_InsertMyBirthday (); - fprintf (Gbl.F.Out,"\"\"", + fprintf (Gbl.F.Out,"\"\""", Gbl.Prefs.PathIconSet,Cfg_ICON_128x128); sprintf (Gbl.Message,Txt_Welcome_X_and_happy_birthday[Gbl.Usrs.Me.UsrDat.Sex], Gbl.Usrs.Me.UsrDat.FirstName);