diff --git a/.settings/language.settings.xml b/.settings/language.settings.xml
index c4007c22..81abd5c3 100644
--- a/.settings/language.settings.xml
+++ b/.settings/language.settings.xml
@@ -11,7 +11,7 @@
-
+
diff --git a/swad_box.c b/swad_box.c
index e4188052..b38a8a81 100644
--- a/swad_box.c
+++ b/swad_box.c
@@ -53,6 +53,12 @@ extern struct Globals Gbl;
/******************************* Private types *******************************/
/*****************************************************************************/
+/*****************************************************************************/
+/***************************** Private variabled *****************************/
+/*****************************************************************************/
+
+static unsigned Box_Nested = 0;
+
/*****************************************************************************/
/***************************** Private prototypes ****************************/
/*****************************************************************************/
@@ -176,11 +182,11 @@ static void Box_StartBoxInternal (const char *Width,const char *Title,
fprintf (Gbl.F.Out,""
"%s"
"
",
- Gbl.Layout.NestedBox ? "FRAME_TITLE_SMALL" :
- "FRAME_TITLE_BIG",
+ Box_Nested ? "FRAME_TITLE_SMALL" :
+ "FRAME_TITLE_BIG",
Title);
- Gbl.Layout.NestedBox++;
+ Box_Nested++;
}
void Box_EndBoxTable (void)
@@ -203,7 +209,7 @@ void Box_EndBoxWithButton (Btn_Button_t Button,const char *TxtButton)
void Box_EndBox (void)
{
- Gbl.Layout.NestedBox--;
+ Box_Nested--;
/***** End box and box container *****/
fprintf (Gbl.F.Out,""
diff --git a/swad_changelog.h b/swad_changelog.h
index 4ed11343..c878003d 100644
--- a/swad_changelog.h
+++ b/swad_changelog.h
@@ -448,10 +448,11 @@ En OpenSWAD:
ps2pdf source.ps destination.pdf
*/
-#define Log_PLATFORM_VERSION "SWAD 18.120.1 (2019-04-25)"
+#define Log_PLATFORM_VERSION "SWAD 18.120.2 (2019-04-30)"
#define CSS_FILE "swad18.112.1.css"
#define JS_FILE "swad18.116.5.js"
/*
+ Version 18.120.2: Apr 30, 2019 Code refactoring related to boxes. (242465 lines)
Version 18.120.1: Apr 25, 2019 Code refactoring related to file browser. (242461 lines)
Version 18.120: Apr 25, 2019 Code refactoring related to file browser. (242466 lines)
Version 18.119: Apr 25, 2019 Code refactoring related to selected users. (242536 lines)
diff --git a/swad_config.h b/swad_config.h
index 1aeecba9..3b7bff2f 100644
--- a/swad_config.h
+++ b/swad_config.h
@@ -28,9 +28,9 @@
/** Uncomment one of the following installations of SWAD or create your own **/
/*****************************************************************************/
-#define LOCALHOST_UBUNTU // Comment this line if not applicable
+//#define LOCALHOST_UBUNTU // Comment this line if not applicable
//#define OPENSWAD_ORG // Comment this line if not applicable
-//#define SWAD_UGR_ES // Comment this line if not applicable
+#define SWAD_UGR_ES // Comment this line if not applicable
//#define SWADBERRY_UGR_ES // Comment this line if not applicable
/*****************************************************************************/
diff --git a/swad_form.c b/swad_form.c
index d0672ccd..f8fee979 100644
--- a/swad_form.c
+++ b/swad_form.c
@@ -27,6 +27,7 @@
#define _GNU_SOURCE // For asprintf
#include // For asprintf
+#include // For free
#include "swad_form.h"
#include "swad_global.h"
diff --git a/swad_global.c b/swad_global.c
index 20213b5d..87707f3a 100644
--- a/swad_global.c
+++ b/swad_global.c
@@ -402,8 +402,6 @@ void Gbl_InitializeGlobals (void)
Gbl.WebService.Function = Svc_unknown;
- Gbl.Layout.NestedBox = 0;
-
/* Flush caches */
Cty_FlushCacheCountryName ();
Ins_FlushCacheShortNameOfInstitution ();
diff --git a/swad_global.h b/swad_global.h
index 5d7b6378..7f66600a 100644
--- a/swad_global.h
+++ b/swad_global.h
@@ -143,7 +143,6 @@ struct Globals
bool HTMLStartWritten; // Used to avoid writing more than once the HTML head
bool DivsEndWritten; // Used to avoid writing more than once the HTML end
bool HTMLEndWritten; // Used to avoid writing more than once the HTML end
- unsigned NestedBox;
} Layout;
struct
{