From 60205a8c16c3bd98b9de936f253b21e38a69cadf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Wed, 19 Feb 2020 21:54:23 +0100 Subject: [PATCH] Version19.128.7 --- sql/swad.sql | 1 + swad_changelog.h | 4 +++- swad_database.c | 25 +++++++++++++------------ swad_plugin.c | 7 +++++++ swad_test_result.c | 1 + swad_test_visibility.c | 1 + swad_text.c | 10 +++++----- 7 files changed, 31 insertions(+), 18 deletions(-) diff --git a/sql/swad.sql b/sql/swad.sql index 585edde42..fc0a77661 100644 --- a/sql/swad.sql +++ b/sql/swad.sql @@ -609,6 +609,7 @@ CREATE TABLE IF NOT EXISTS gam_games ( Hidden ENUM('N','Y') NOT NULL DEFAULT 'N', UsrCod INT NOT NULL, MaxGrade DOUBLE PRECISION NOT NULL DEFAULT 1, + Visibility INT NOT NULL DEFAULT 0x1f, Title VARCHAR(2047) NOT NULL, Txt TEXT NOT NULL, UNIQUE INDEX(GamCod), diff --git a/swad_changelog.h b/swad_changelog.h index 353f4bd6b..a8c979623 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -497,7 +497,7 @@ enscript -2 --landscape --color --file-align=2 --highlight --line-numbers -o - * En OpenSWAD: ps2pdf source.ps destination.pdf */ -#define Log_PLATFORM_VERSION "SWAD 19.128.6 (2020-02-19)" +#define Log_PLATFORM_VERSION "SWAD 19.128.7 (2020-02-19)" #define CSS_FILE "swad19.118.css" #define JS_FILE "swad19.91.1.js" /* @@ -521,6 +521,8 @@ Param // TODO: No se puede entrar con DNI '1' suponiendo que no tenga password ¿por qué? // TODO: En la lista de conectados central, poner el logo de la institución a la que pertenece el usuario + Version 19.128.7: Feb 19, 2020 Programa is changed by Temario. + Fixed bug in plugins. (279167 lines) Version 19.128.6: Feb 19, 2020 Visibility added to API function getTestConfig. (279156 lines) Version 19.128.5: Feb 19, 2020 Visibility added to API function getGames. (279151 lines) Version 19.128.4: Feb 19, 2020 Increased separation between answers in matches, suggested by Jesús González Peñalver. (279151 lines) diff --git a/swad_database.c b/swad_database.c index 48c91ce48..bd969c03a 100644 --- a/swad_database.c +++ b/swad_database.c @@ -1313,18 +1313,19 @@ mysql> DESCRIBE forum_thread; /***** Table gam_games *****/ /* mysql> DESCRIBE gam_games; -+----------+---------------+------+-----+---------+----------------+ -| Field | Type | Null | Key | Default | Extra | -+----------+---------------+------+-----+---------+----------------+ -| GamCod | int(11) | NO | PRI | NULL | auto_increment | -| CrsCod | int(11) | NO | MUL | -1 | | -| Hidden | enum('N','Y') | NO | | N | | -| UsrCod | int(11) | NO | | NULL | | -| MaxGrade | double | NO | | 1 | | -| Title | varchar(2047) | NO | | NULL | | -| Txt | text | NO | | NULL | | -+----------+---------------+------+-----+---------+----------------+ -7 rows in set (0.00 sec) ++------------+---------------+------+-----+---------+----------------+ +| Field | Type | Null | Key | Default | Extra | ++------------+---------------+------+-----+---------+----------------+ +| GamCod | int(11) | NO | PRI | NULL | auto_increment | +| CrsCod | int(11) | NO | MUL | -1 | | +| Hidden | enum('N','Y') | NO | | N | | +| UsrCod | int(11) | NO | | NULL | | +| MaxGrade | double | NO | | 1 | | +| Visibility | int(11) | NO | | 31 | | +| Title | varchar(2047) | NO | | NULL | | +| Txt | text | NO | | NULL | | ++------------+---------------+------+-----+---------+----------------+ +8 rows in set (0.00 sec) */ DB_CreateTable ("CREATE TABLE IF NOT EXISTS gam_games (" "GamCod INT NOT NULL AUTO_INCREMENT," diff --git a/swad_plugin.c b/swad_plugin.c index 40ada0ba6..bd4ab305c 100644 --- a/swad_plugin.c +++ b/swad_plugin.c @@ -391,6 +391,7 @@ static void Plg_ListPluginsForEdition (void) { Plg = &Gbl.Plugins.Lst[NumPlg]; + /* Row begin */ HTM_TR_Begin (NULL); /* Put icon to remove plugin */ @@ -469,6 +470,8 @@ static void Plg_ListPluginsForEdition (void) "size=\"10\""); Frm_EndForm (); HTM_TD_End (); + + /* Row end */ HTM_TR_End (); } @@ -871,6 +874,9 @@ static void Plg_PutFormToCreatePlugin (void) HTM_TR_End (); + /***** Row begin *****/ + HTM_TR_Begin (NULL); + /***** Plugin name *****/ HTM_TD_Begin ("class=\"CM\""); HTM_INPUT_TEXT ("Name",Plg_MAX_CHARS_PLUGIN_NAME,Plg_EditingPlg->Name,false, @@ -908,6 +914,7 @@ static void Plg_PutFormToCreatePlugin (void) "size=\"10\" required=\"required\""); HTM_TD_End (); + /***** Row end *****/ HTM_TR_End (); /***** End table, send button and end box *****/ diff --git a/swad_test_result.c b/swad_test_result.c index b557e6254..d0ede662c 100644 --- a/swad_test_result.c +++ b/swad_test_result.c @@ -29,6 +29,7 @@ #include // For boolean type #include // For NULL #include // For asprintf +#include // For free #include "swad_action.h" #include "swad_database.h" diff --git a/swad_test_visibility.c b/swad_test_visibility.c index 937a7316a..f5d36465d 100644 --- a/swad_test_visibility.c +++ b/swad_test_visibility.c @@ -27,6 +27,7 @@ #define _GNU_SOURCE // For asprintf #include // For asprintf +#include // For malloc, free #include "swad_HTML.h" #include "swad_parameter.h" diff --git a/swad_text.c b/swad_text.c index 5bb7562a3..32bc9974b 100644 --- a/swad_text.c +++ b/swad_text.c @@ -19246,23 +19246,23 @@ const char *Txt_MENU_TITLE[Tab_NUM_TABS][Act_MAX_OPTIONS_IN_MENU_PER_TAB] = , // 2: ActSeeSyl #if L==1 // ca - "Programa" + "Temari" #elif L==2 // de "Studienplan" #elif L==3 // en "Syllabus" #elif L==4 // es - "Programa" + "Temario" #elif L==5 // fr "Plan" #elif L==6 // gn - "Programa" // Okoteve traducción + "Temario" // Okoteve traducción #elif L==7 // it "Programma" #elif L==8 // pl - "Syllabus" + "Sylabus" #elif L==9 // pt - "Programa" + "Conteúdo" #endif , // 3: ActSeeBib