Version 14.55.4

This commit is contained in:
Antonio Cañas Vargas 2015-01-16 18:51:45 +01:00
parent ca1b12e684
commit 2f7424bd7d
4 changed files with 13 additions and 7 deletions

View File

@ -39,13 +39,15 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 14.55.3 (2015/01/16)"
#define Log_PLATFORM_VERSION "SWAD 14.55.4 (2015/01/16)"
// 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 | tail -1
/*
Version 14.55.4: Jan 16, 2015 Fixed bugs in enrollment.
New MIME type, reported by Francisco Ocaña Lara. (173576 lines)
Version 14.55.3: Jan 16, 2015 Link in course information to request registration in course.
Fixed bugs in enrollment. (173570 lines)
Fixed bug in enrollment. (173570 lines)
Version 14.55.2: Jan 15, 2015 Logo of centre, degree, institution or country in title. (173546 lines)
Version 14.55.1: Jan 14, 2015 Fixed bug in user's photo. (173510 lines)
Version 14.55 : Jan 14, 2015 New option to upload logo of a centre. (173509 lines)

View File

@ -188,7 +188,8 @@ static void Crs_Configuration (bool PrintView)
Lay_PutLinkToPrintView2 ();
/* Link to request enrollment in the current course */
if (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_GUEST)
if (Gbl.Usrs.Me.LoggedRole == Rol_ROLE_GUEST ||
Gbl.Usrs.Me.LoggedRole == Rol_ROLE_VISITOR)
Enr_PutLinkToRequestSignUp ();
fprintf (Gbl.F.Out,"</div>");

View File

@ -849,6 +849,7 @@ const char *Brw_MIMETypesAllowed[] =
"video/mpeg", // MPEG video mpe, mpeg, mpg
"video/msvideo", // Microsoft Windows video avi
"video/quicktime", // QuickTime video mov, qt
"video/unknown", // ?
"video/x-ms-asf", // WMA (Windows Media Audio File)
"video/x-ms-wmv", // WMV (Windows Media File)
"video/x-msvideo", // AVI

View File

@ -2388,10 +2388,12 @@ void Rec_ShowCommonRecord (Rec_RecordViewType_t TypeOfView,
fprintf (Gbl.F.Out,"<select name=\"Role\">");
switch (Gbl.Usrs.Me.LoggedRole)
{
case Rol_ROLE_STUDENT: // A student only can edir his/her record
fprintf (Gbl.F.Out,"<option value=\"%u\" selected=\"selected\">%s</option>",
(unsigned) Rol_ROLE_STUDENT,
Txt_ROLES_SINGULAR_Abc[Rol_ROLE_STUDENT][UsrDat->Sex]);
case Rol_ROLE_GUEST:
case Rol_ROLE_VISITOR:
case Rol_ROLE_STUDENT:
fprintf (Gbl.F.Out,"<option value=\"%u\" selected=\"selected\" disabled=\"disabled\">%s</option>",
(unsigned) Gbl.Usrs.Me.LoggedRole,
Txt_ROLES_SINGULAR_Abc[Gbl.Usrs.Me.LoggedRole][UsrDat->Sex]);
break;
case Rol_ROLE_TEACHER:
for (Role = Rol_ROLE_STUDENT;