Version 17.10.5

This commit is contained in:
Antonio Cañas Vargas 2017-09-25 00:43:03 +02:00
parent 6cd32ccf9a
commit 073aaa905c
3 changed files with 2 additions and 16 deletions

View File

@ -252,13 +252,14 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 17.10.4 (2017-09-25)"
#define Log_PLATFORM_VERSION "SWAD 17.10.5 (2017-09-25)"
#define CSS_FILE "swad17.0.css"
#define JS_FILE "swad16.206.3.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 17.10.5: Sep 25, 2017 Removed unused code in projects. (231354 lines)
Version 17.10.4: Sep 25, 2017 Changes in form behaviour when editing a project. (231365 lines)
Version 17.10.3: Sep 25, 2017 Check permission when editing projects.
Check permission when removing a user from a project. (231359 lines)

View File

@ -2468,20 +2468,6 @@ void Prj_RemoveUsrFromProjects (long UsrCod)
DB_QueryDELETE (Query,"can not remove user from projects");
}
/*****************************************************************************/
/******************** Get number of projects in a course *********************/
/*****************************************************************************/
unsigned Prj_GetNumProjectsInCrs (long CrsCod)
{
char Query[256];
/***** Get number of projects in a course from database *****/
sprintf (Query,"SELECT COUNT(*) FROM projects WHERE CrsCod=%ld",
CrsCod);
return (unsigned) DB_QueryCOUNT (Query,"can not get number of projects in course");
}
/*****************************************************************************/
/******************** Get number of courses with projects ********************/
/*****************************************************************************/

View File

@ -125,7 +125,6 @@ void Prj_RecFormProject (void);
void Prj_RemoveCrsProjects (long CrsCod);
void Prj_RemoveUsrFromProjects (long UsrCod);
unsigned Prj_GetNumProjectsInCrs(long CrsCod);
unsigned Prj_GetNumCoursesWithProjects (Sco_Scope_t Scope);
unsigned Prj_GetNumProjects (Sco_Scope_t Scope);