mirror of
https://github.com/acanas/swad-core.git
synced 2024-06-18 14:35:46 +02:00
Version 16.181.3
This commit is contained in:
parent
ffceaa474f
commit
b0f834c40c
|
@ -214,13 +214,14 @@
|
||||||
/****************************** Public constants *****************************/
|
/****************************** Public constants *****************************/
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
#define Log_PLATFORM_VERSION "SWAD 16.181.2 (2017-04-18)"
|
#define Log_PLATFORM_VERSION "SWAD 16.181.3 (2017-04-18)"
|
||||||
#define CSS_FILE "swad16.181.css"
|
#define CSS_FILE "swad16.181.css"
|
||||||
#define JS_FILE "swad16.181.js"
|
#define JS_FILE "swad16.181.js"
|
||||||
|
|
||||||
// Number of lines (includes comments but not blank lines) has been got with the following command:
|
// 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
|
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1
|
||||||
/*
|
/*
|
||||||
|
Version 16.181.3: Apr 18, 2017 Code refactoring in forums. (217604 lines)
|
||||||
Version 16.181.2: Apr 18, 2017 Code refactoring in forums. (217590 lines)
|
Version 16.181.2: Apr 18, 2017 Code refactoring in forums. (217590 lines)
|
||||||
Version 16.181.1: Apr 17, 2017 Code refactoring in forums. (217538 lines)
|
Version 16.181.1: Apr 17, 2017 Code refactoring in forums. (217538 lines)
|
||||||
Version 16.181: Apr 17, 2017 Changes in layout of messages.
|
Version 16.181: Apr 17, 2017 Changes in layout of messages.
|
||||||
|
|
23
swad_forum.c
23
swad_forum.c
|
@ -1220,8 +1220,20 @@ static void For_ShowAForumPost (struct Forum *ForumSelected,
|
||||||
if (LastPst && Gbl.Usrs.Me.UsrDat.UsrCod == UsrDat.UsrCod)
|
if (LastPst && Gbl.Usrs.Me.UsrDat.UsrCod == UsrDat.UsrCod)
|
||||||
// Post can be removed if post is the last (without answers) and it's mine
|
// Post can be removed if post is the last (without answers) and it's mine
|
||||||
{
|
{
|
||||||
Act_FormStart (For_ActionsDelPstFor[ForumSelected->Type]);
|
if (PstNum == 1) // First and unique post in thread
|
||||||
Pag_PutHiddenParamPagNum (Pag_POSTS_FORUM,Gbl.Forum.CurrentPagePsts);
|
{
|
||||||
|
Act_FormStartAnchor (For_ActionsDelPstFor[ForumSelected->Type],
|
||||||
|
For_ID_FORUM_THREADS_SECTION);
|
||||||
|
Pag_PutHiddenParamPagNum (Pag_THREADS_FORUM,
|
||||||
|
Gbl.Forum.CurrentPageThrs);
|
||||||
|
}
|
||||||
|
else // Last of several posts in thread
|
||||||
|
{
|
||||||
|
Act_FormStartAnchor (For_ActionsDelPstFor[ForumSelected->Type],
|
||||||
|
For_ID_FORUM_POSTS_SECTION);
|
||||||
|
Pag_PutHiddenParamPagNum (Pag_POSTS_FORUM,
|
||||||
|
Gbl.Forum.CurrentPagePsts);
|
||||||
|
}
|
||||||
For_PutAllHiddenParamsForum (Gbl.Forum.ForumSet,
|
For_PutAllHiddenParamsForum (Gbl.Forum.ForumSet,
|
||||||
Gbl.Forum.SelectedOrder,
|
Gbl.Forum.SelectedOrder,
|
||||||
Gbl.Forum.ForumSelected.Location,
|
Gbl.Forum.ForumSelected.Location,
|
||||||
|
@ -1236,8 +1248,9 @@ static void For_ShowAForumPost (struct Forum *ForumSelected,
|
||||||
{
|
{
|
||||||
if (ICanModerateForum)
|
if (ICanModerateForum)
|
||||||
{
|
{
|
||||||
Act_FormStart (Enabled ? For_ActionsDisPstFor[ForumSelected->Type] :
|
Act_FormStartAnchor (Enabled ? For_ActionsDisPstFor[ForumSelected->Type] :
|
||||||
For_ActionsEnbPstFor[ForumSelected->Type]);
|
For_ActionsEnbPstFor[ForumSelected->Type],
|
||||||
|
For_ID_FORUM_POSTS_SECTION);
|
||||||
Pag_PutHiddenParamPagNum (Pag_POSTS_FORUM,Gbl.Forum.CurrentPagePsts);
|
Pag_PutHiddenParamPagNum (Pag_POSTS_FORUM,Gbl.Forum.CurrentPagePsts);
|
||||||
For_PutAllHiddenParamsForum (Gbl.Forum.ForumSet,
|
For_PutAllHiddenParamsForum (Gbl.Forum.ForumSet,
|
||||||
Gbl.Forum.SelectedOrder,
|
Gbl.Forum.SelectedOrder,
|
||||||
|
@ -3776,7 +3789,7 @@ static void For_WriteFormForumPst (bool IsReply,const char *Subject)
|
||||||
{
|
{
|
||||||
Act_FormStartAnchor (For_ActionsRecRepFor[Gbl.Forum.ForumSelected.Type],
|
Act_FormStartAnchor (For_ActionsRecRepFor[Gbl.Forum.ForumSelected.Type],
|
||||||
For_ID_FORUM_POSTS_SECTION);
|
For_ID_FORUM_POSTS_SECTION);
|
||||||
Pag_PutHiddenParamPagNum (Pag_POSTS_FORUM,0);
|
Pag_PutHiddenParamPagNum (Pag_POSTS_FORUM,Gbl.Forum.CurrentPagePsts);
|
||||||
For_PutAllHiddenParamsForum (Gbl.Forum.ForumSet,
|
For_PutAllHiddenParamsForum (Gbl.Forum.ForumSet,
|
||||||
Gbl.Forum.SelectedOrder,
|
Gbl.Forum.SelectedOrder,
|
||||||
Gbl.Forum.ForumSelected.Location,
|
Gbl.Forum.ForumSelected.Location,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user