From 17ab9c2ccbbfbd47e109fa2788d5a09a726d6fa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Sun, 17 Apr 2016 23:28:38 +0200 Subject: [PATCH] Version 15.199.5 --- swad_changelog.h | 3 ++- swad_degree.c | 16 ++++------------ 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index 2a60c7a03..483ad6a0c 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -135,13 +135,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 15.199.4 (2016-04-17)" +#define Log_PLATFORM_VERSION "SWAD 15.199.5 (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.5: Apr 17, 2016 Changes in title of results of searching degrees. (199652 lines) Version 15.199.4: Apr 17, 2016 Changes in title of results of searching centres. (199657 lines) 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) diff --git a/swad_degree.c b/swad_degree.c index 1f94f785e..2be958936 100644 --- a/swad_degree.c +++ b/swad_degree.c @@ -2994,7 +2994,6 @@ void Deg_GetAndWriteInsCtrDegAdminBy (long UsrCod,unsigned ColSpan) unsigned Deg_ListDegsFound (const char *Query) { - extern const char *Txt_Degrees; extern const char *Txt_degree; extern const char *Txt_degrees; MYSQL_RES *mysql_res; @@ -3007,18 +3006,11 @@ unsigned Deg_ListDegsFound (const char *Query) if ((NumDegs = (unsigned) DB_QuerySELECT (Query,&mysql_res,"can not get degrees"))) { /***** Write heading *****/ - Lay_StartRoundFrameTable (NULL,2,Txt_Degrees); - /* Number of degrees found */ - fprintf (Gbl.F.Out,"" - ""); - if (NumDegs == 1) - fprintf (Gbl.F.Out,"1 %s",Txt_degree); - else - fprintf (Gbl.F.Out,"%u %s",NumDegs,Txt_degrees); - fprintf (Gbl.F.Out,"" - ""); - + sprintf (Gbl.Title,"%u %s", + NumDegs,(NumDegs == 1) ? Txt_degree : + Txt_degrees); + Lay_StartRoundFrameTable (NULL,2,Gbl.Title); Deg_PutHeadDegreesForSeeing (); /***** List the degrees (one row per degree) *****/