Version 15.199.5

This commit is contained in:
Antonio Cañas Vargas 2016-04-17 23:28:38 +02:00
parent 715dbf0c6a
commit 17ab9c2ccb
2 changed files with 6 additions and 13 deletions

View File

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

View File

@ -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,"<tr>"
"<td colspan=\"8\" class=\"CENTER_MIDDLE\"\">");
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,"</td>"
"</tr>");
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) *****/