From 26ad90468b40b8e04d3a505d10fe0e785d6d67d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Mon, 5 Dec 2016 09:50:35 +0100 Subject: [PATCH] Version 16.86.11 --- swad_agenda.c | 15 +++++++++------ swad_changelog.h | 3 ++- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/swad_agenda.c b/swad_agenda.c index 81863af53..3be0f2800 100644 --- a/swad_agenda.c +++ b/swad_agenda.c @@ -38,6 +38,7 @@ #include "swad_pagination.h" #include "swad_parameter.h" #include "swad_photo.h" +#include "swad_QR.h" #include "swad_string.h" /*****************************************************************************/ @@ -332,13 +333,15 @@ static void Agd_PutIconToCreateNewEvent (void) static void Agd_PutIconToShowQR (void) { - extern const char *Txt_QR_code; + char URL[Cns_MAX_BYTES_URL+1]; + extern const char *Txt_STR_LANG_ID[1+Txt_NUM_LANGUAGES]; - /***** Put form to create a new event *****/ - Lay_PutContextualLink (ActFrmNewEvtMyAgd,NULL, - "qr64x64.gif", - Txt_QR_code,NULL, - NULL); + sprintf (URL,"%s/%s?agd=@%s", + Cfg_URL_SWAD_CGI, + Txt_STR_LANG_ID[Gbl.Prefs.Language], + Gbl.Usrs.Me.UsrDat.Nickname); + Gbl.QR.Str = URL; + QR_PutLinkToPrintQRCode (false); } /*****************************************************************************/ diff --git a/swad_changelog.h b/swad_changelog.h index f57f3451a..2f27a6096 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -185,13 +185,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.86.10 (2016-12-05)" +#define Log_PLATFORM_VERSION "SWAD 16.86.11 (2016-12-05)" #define CSS_FILE "swad16.86.5.css" #define JS_FILE "swad16.84.2.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.86.11: Dec 05, 2016 Link to QR in user's agenda. (209908 lines) Version 16.86.10: Dec 05, 2016 Code refactoring related to user's QR (nickname). (209904 lines) Version 16.86.9: Dec 05, 2016 Link to QR in user's agenda. Not finished. (209889 lines) Version 16.86.8: Dec 05, 2016 Changes in layout of user's agenda. (209864 lines)