diff --git a/swad_changelog.h b/swad_changelog.h index 07e3de84e..32a240feb 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -103,11 +103,12 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 14.120.4 (2015/07/25)" +#define Log_PLATFORM_VERSION "SWAD 14.120.5 (2015/07/26)" // 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 14.120.5: Jul 26, 2015 Changes in CSS of forms. (184924 lines) Version 14.120.4: Jul 25, 2015 Changes in CSS of forms. (184937 lines) Version 14.120.3: Jul 25, 2015 Changes in selectors of country, institution, centre, degree and course. (184893 lines) Version 14.120.2: Jul 25, 2015 Changes in CSS of forms. diff --git a/swad_follow.c b/swad_follow.c index bb47f6884..5aec38173 100644 --- a/swad_follow.c +++ b/swad_follow.c @@ -155,7 +155,7 @@ static void Fol_ShowNumberOfFollowingOrFollowers (const struct UsrData *UsrDat, fprintf (Gbl.F.Out,""); /* Text */ - fprintf (Gbl.F.Out,"
", + fprintf (Gbl.F.Out,"
", (Gbl.CurrentAct == Action) ? The_ClassFormulB[Gbl.Prefs.Theme] : The_ClassFormul[Gbl.Prefs.Theme]); if (NumUsrs) diff --git a/swad_forum.c b/swad_forum.c index 4be0da2ec..3094ea1c7 100644 --- a/swad_forum.c +++ b/swad_forum.c @@ -266,6 +266,7 @@ static void For_WriteFormForumPst (bool IsReply,long ThrCod,const char *Subject) static void For_UpdateNumUsrsNotifiedByEMailAboutPost (long PstCod,unsigned NumUsrsToBeNotifiedByEMail); static void For_WriteNumberOfThrs (unsigned NumThrs,unsigned NumThrsWithNewPosts); static void For_WriteNumThrsAndPsts (unsigned NumThrs,unsigned NumThrsWithNewPosts,unsigned NumPosts); +static void For_WriteThrSubject (long ThrCod); static long For_GetParamThrCod (void); static void For_PutHiddenParamPstCod (long PstCod); static long For_GetParamPstCod (void); @@ -864,7 +865,6 @@ void For_RemoveUsrFromReadThrs (long UsrCod) static void For_ShowThreadPosts (long ThrCod,char *LastSubject) { - extern const char *The_ClassFormul[The_NUM_THEMES]; extern const char *Txt_Thread; extern const char *Txt_There_are_new_posts; extern const char *Txt_No_new_posts; @@ -907,10 +907,7 @@ static void For_ShowThreadPosts (long ThrCod,char *LastSubject) /* Write a link to top level of forums */ fprintf (Gbl.F.Out,"
" - "
    ", - The_ClassFormul[Gbl.Prefs.Theme]); + "
      "); For_WriteLinkToTopLevelOfForums (); /* Write a link to current forum */ @@ -918,7 +915,7 @@ static void For_ShowThreadPosts (long ThrCod,char *LastSubject) For_WriteLinkToAForum (Gbl.Forum.ForumType,true,1,IsLastItemInLevel); /* Write thread title */ - fprintf (Gbl.F.Out,"
    • "); + fprintf (Gbl.F.Out,"
    • "); IsLastItemInLevel[2] = true; Lay_IndentDependingOnLevel (2,IsLastItemInLevel); @@ -1592,7 +1589,6 @@ void For_SetForumTypeAndRestrictAccess (void) void For_ShowForumList (void) { - extern const char *The_ClassFormul[The_NUM_THEMES]; extern const char *Txt_Forums; bool ICanMoveThreads = (Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM); // If I have permission to move threads... bool IsLastItemInLevel[1+For_FORUM_MAX_LEVELS]; @@ -1626,10 +1622,7 @@ void For_ShowForumList (void) /***** Write a link to top level of forums *****/ fprintf (Gbl.F.Out,"
      " - "
        ", - The_ClassFormul[Gbl.Prefs.Theme]); + "
          "); For_WriteLinkToTopLevelOfForums (); /***** Links to global forums *****/ @@ -2362,7 +2355,6 @@ static unsigned For_GetNumOfPostsInThrNewerThan (long ThrCod,const char *Time) void For_ShowForumThrs (void) { - extern const char *The_ClassFormul[The_NUM_THEMES]; extern const char *Txt_Forum; extern const char *Txt_Threads; extern const char *Txt_MSG_Subject; @@ -2474,10 +2466,7 @@ void For_ShowForumThrs (void) /* Write a link to top level of forums */ fprintf (Gbl.F.Out,"
          " - "
            ", - The_ClassFormul[Gbl.Prefs.Theme]); + "
              "); For_WriteLinkToTopLevelOfForums (); /* Write a link to current forum */ @@ -3516,7 +3505,7 @@ void For_GetThrData (struct ForumThread *Thr) /************* Write the subject of the first message of a thread ************/ /*****************************************************************************/ -void For_WriteThrSubject (long ThrCod) +static void For_WriteThrSubject (long ThrCod) { extern const char *Txt_no_subject; extern const char *Txt_first_message_not_allowed; @@ -3719,8 +3708,7 @@ static void For_WriteFormForumPst (bool IsReply,long ThrCod,const char *Subject) Lay_StartRoundFrameTable (NULL,2,IsReply ? Txt_New_message : Txt_New_thread); fprintf (Gbl.F.Out,"" - "" + "" "%s: " "" "" @@ -3733,8 +3721,7 @@ static void For_WriteFormForumPst (bool IsReply,long ThrCod,const char *Subject) "" "" "" - "" + "" "%s: " "" "" diff --git a/swad_forum.h b/swad_forum.h index a85d8bc85..484c5989e 100644 --- a/swad_forum.h +++ b/swad_forum.h @@ -139,7 +139,6 @@ unsigned For_GetNumTotalPstsInForumsOfType (For_ForumType_t ForumType, unsigned For_GetNumPstsInForum (For_ForumType_t ForumType); void For_ListForumThrs (long ThrCods[Pag_ITEMS_PER_PAGE],struct Pagination *PaginationThrs); void For_GetThrData (struct ForumThread *Thr); -void For_WriteThrSubject (long ThrCod); void For_ShowThrPsts (void); void For_GetParamsForum (void); void For_PutHiddenParamThrCod (long ThrCod);