diff --git a/swad_changelog.h b/swad_changelog.h index fe920d85f..908badba6 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -214,13 +214,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 16.183 (2017-04-18)" +#define Log_PLATFORM_VERSION "SWAD 16.183.1 (2017-04-18)" #define CSS_FILE "swad16.181.css" #define JS_FILE "swad16.181.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.183.1: Apr 18, 2017 Changes in layout of forums. (217719 lines) Version 16.183: Apr 18, 2017 Code refactoring in forums. (217738 lines) Version 16.182: Apr 18, 2017 Code refactoring in forums and pagination. (217678 lines) Version 16.181.7: Apr 18, 2017 Changes in layout of forums. (217641 lines) diff --git a/swad_forum.c b/swad_forum.c index 3dea5fd70..0d7f24893 100644 --- a/swad_forum.c +++ b/swad_forum.c @@ -3508,10 +3508,10 @@ static void For_GetThrData (struct ForumThread *Thr) row = mysql_fetch_row (mysql_res); /***** Get the code of the first post in this thread (row[0]) *****/ - //Thr->PstCod[For_FIRST_MSG] = Str_ConvertStrCodToLongCod (row[0]); + Thr->PstCod[For_FIRST_MSG] = Str_ConvertStrCodToLongCod (row[0]); /***** Get the code of the last post in this thread (row[1]) *****/ - //Thr->PstCod[For_LAST_MSG ] = Str_ConvertStrCodToLongCod (row[1]); + Thr->PstCod[For_LAST_MSG ] = Str_ConvertStrCodToLongCod (row[1]); /***** Get the code of the first message in this thread (row[0]) *****/ if (sscanf (row[0],"%ld",&(Thr->PstCod[For_FIRST_MSG])) != 1) @@ -3546,8 +3546,8 @@ static void For_GetThrData (struct ForumThread *Thr) for (Order = For_FIRST_MSG; Order <= For_LAST_MSG; Order++) - // Thr->Enabled[Order] = For_GetIfPstIsEnabled (Thr->PstCod[Order]); - Thr->Enabled[Order] = true; + Thr->Enabled[Order] = For_GetIfPstIsEnabled (Thr->PstCod[Order]); + // Thr->Enabled[Order] = true; /***** Get number of posts in this thread *****/ Thr->NumPosts = For_GetNumPstsInThr (Thr->ThrCod); diff --git a/swad_pagination.c b/swad_pagination.c index a7f54c599..507c75d30 100644 --- a/swad_pagination.c +++ b/swad_pagination.c @@ -142,7 +142,7 @@ void Pag_WriteLinksToPages (Pag_WhatPaginate_t WhatPaginate, { extern const char *Txt_Page; extern const char *Txt_See_page_X_of_Y; - extern const char *Txt_first_message_not_allowed; + extern const char *Txt_Post_banned; unsigned NumPage; /***** Link to page 1, including a text *****/ @@ -227,7 +227,7 @@ void Pag_WriteLinksToPages (Pag_WhatPaginate_t WhatPaginate, fprintf (Gbl.F.Out,"%s",Subject); else fprintf (Gbl.F.Out,"[%s]", - Txt_first_message_not_allowed); + Txt_Post_banned); if (LinkToPagCurrent) { fprintf (Gbl.F.Out,""); diff --git a/swad_text.c b/swad_text.c index 005f2e362..36ee8183e 100644 --- a/swad_text.c +++ b/swad_text.c @@ -12788,27 +12788,6 @@ const char *Txt_First_day_of_the_week = "Primeiro dia da semana"; #endif -const char *Txt_first_message_not_allowed = -#if L==1 - "primer mensaje no permitido"; // Necessita traduccio -#elif L==2 - "erste Nachricht nicht erlaubt"; -#elif L==3 - "first message not allowed"; -#elif L==4 - "primer mensaje no permitido"; -#elif L==5 - "premier message non admis"; -#elif L==6 - "primer mensaje no permitido"; // Okoteve traducción -#elif L==7 - "primo messaggio non ammesso"; -#elif L==8 - "Pierwszy komunikat nie jest dozwolony"; -#elif L==9 - "primeira mensagem não permitida"; -#endif - const char *Txt_First_name = #if L==1 "Nom";