diff --git a/swad_changelog.h b/swad_changelog.h index 4f238a874..b088d12ba 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -135,13 +135,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 15.199.2 (2016-04-16)" +#define Log_PLATFORM_VERSION "SWAD 15.199.3 (2016-04-17)" #define CSS_FILE "swad15.198.css" #define JS_FILE "swad15.197.js" // 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 15.199.3: Apr 17, 2016 Changes in title of results of searching institutions. (199663 lines) Version 15.199.2: Apr 16, 2016 Fixed bug in social comments, reported by Javier Fernández Baldomero. (199666 lines) Version 15.199.1: Apr 16, 2016 Fixed bug in Statistics > Degrees. (199665 lines) Version 15.199: Apr 16, 2016 In Statistics > Degrees, show only degrees with students. diff --git a/swad_institution.c b/swad_institution.c index f4bcf8505..e89aa0d72 100644 --- a/swad_institution.c +++ b/swad_institution.c @@ -2261,17 +2261,12 @@ unsigned Ins_ListInssFound (const char *Query) if ((NumInss = (unsigned) DB_QuerySELECT (Query,&mysql_res,"can not get institutions"))) { /***** Write heading *****/ - Lay_StartRoundFrameTable (NULL,2,Txt_Institutions); - /* Number of institutions found */ - fprintf (Gbl.F.Out,"" - ""); - if (NumInss == 1) - fprintf (Gbl.F.Out,"1 %s",Txt_institution); - else - fprintf (Gbl.F.Out,"%u %s",NumInss,Txt_institutions); - fprintf (Gbl.F.Out,"" - ""); + sprintf (Gbl.Title,"%u %s", + NumInss,NumInss == 1 ? Txt_institution : + Txt_institutions); + + Lay_StartRoundFrameTable (NULL,2,Gbl.Title); Ins_PutHeadInstitutionsForSeeing (false); // Order not selectable