Version 15.71

This commit is contained in:
Antonio Cañas Vargas 2015-12-21 14:49:53 +01:00
parent ac3be0464d
commit 99952e58c3
2 changed files with 7 additions and 7 deletions

View File

@ -118,12 +118,13 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 15.70.7 (2015/12/21)"
#define Log_PLATFORM_VERSION "SWAD 15.71 (2015/12/21)"
#define CSS_FILE "swad15.65.1.css"
// 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 15.71: Dec 21, 2015 Removing old files in briefcase. Finished. (187614 lines)
Version 15.70.7: Dec 21, 2015 Code refactoring in file browser. (187614 lines)
Version 15.70.6: Dec 21, 2015 Removing old files in briefcase. Not finished. (187604 lines)
2 changes necessary in database:

View File

@ -3431,9 +3431,8 @@ static void Brw_WriteTopBeforeShowingFileBrowser (void)
Brw_PutFormToShowOrAdmin (Brw_SHOW,ActSeeMrkGrp);
break;
case Brw_ADMI_BRIEF_USR:
if (Gbl.Usrs.Me.LoggedRole == Rol_SYS_ADM) // TODO: Remove this line when stable
if (Gbl.CurrentAct != ActAskRemOldBrf)
Brw_PutFormToAskRemOldFiles ();
if (Gbl.CurrentAct != ActAskRemOldBrf)
Brw_PutFormToAskRemOldFiles ();
break;
default:
break;
@ -11276,7 +11275,7 @@ static void Brw_PutFormToAskRemOldFiles (void)
/************** Write a form fo confirm removing of old files ****************/
/*****************************************************************************/
#define Brw_MIN_MONTHS_TO_REMOVE_OLD_FILES 2 // 2 months
#define Brw_MIN_MONTHS_TO_REMOVE_OLD_FILES 6 // 6 months
#define Brw_DEF_MONTHS_TO_REMOVE_OLD_FILES 12 // 1 year
#define Brw_MAX_MONTHS_TO_REMOVE_OLD_FILES (10*12) // 10 years
@ -11469,8 +11468,8 @@ static void Brw_ScanDirRemovingOlfFiles (unsigned Level,const char *Path,
if (FileStatus.st_mtime < TimeRemoveFilesOlder)
{
/* Remove folder */
// if (rmdir (Path))
// Lay_ShowErrorAndExit ("Can not remove folder.");
if (rmdir (Path))
Lay_ShowErrorAndExit ("Can not remove folder.");
(Removed->NumFolds)++;
}
}