diff --git a/Makefile b/Makefile index 0fc91a7a2..894275037 100644 --- a/Makefile +++ b/Makefile @@ -65,7 +65,7 @@ CC = gcc # LIBS when using MariaDB (also valid with MySQL): LIBS = -lssl -lcrypto -lpthread -lrt -lmysqlclient -lz -L/usr/lib64/mysql -lm -lgsoap -CFLAGS = -Wall -Wextra -O2 -s +CFLAGS = -Wall -Wextra -mtune=native -O2 -s all: swad_ca swad_de swad_en swad_es swad_fr swad_gn swad_it swad_pl swad_pt diff --git a/swad_centre.c b/swad_centre.c index bfe6a888e..a5aed6a04 100644 --- a/swad_centre.c +++ b/swad_centre.c @@ -2683,9 +2683,9 @@ static void Ctr_CreateCentre (struct Centre *Ctr,unsigned Status) /***** Create a new centre *****/ sprintf (Query,"INSERT INTO centres (InsCod,PlcCod,Status,RequesterUsrCod," - "ShortName,FullName,WWW)" + "ShortName,FullName,WWW,PhotoAttribution)" " VALUES ('%ld','%ld','%u','%ld'," - "'%s','%s','%s')", + "'%s','%s','%s','')", Ctr->InsCod,Ctr->PlcCod, Status, Gbl.Usrs.Me.UsrDat.UsrCod, diff --git a/swad_changelog.h b/swad_changelog.h index a0fd52fa0..69c3aa643 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -154,13 +154,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.46.2 (2016-11-01)" +#define Log_PLATFORM_VERSION "SWAD 16.46.3 (2016-11-03)" #define CSS_FILE "swad16.32.1.css" #define JS_FILE "swad16.46.1.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 16.46.3: Nov 03, 2016 Fixed bug in creation of a new centre. (206041 lines) Version 16.46.2: Nov 01, 2016 Fixed bugs in surveys. (206040 lines) Version 16.46.1: Nov 01, 2016 Fixed bugs in javascript function to set a date range to a given day. (206035 lines) Version 16.46: Oct 29, 2016 Fixed bugs in surveys.