mirror of https://github.com/acanas/swad-core.git
Version 18.52.4
This commit is contained in:
parent
27b118cafc
commit
1c98d3828e
|
@ -747,7 +747,7 @@ a:hover /* Default ==> underlined */
|
|||
.TAB_ON_PURPLE {background-color:#fdf3f3;}
|
||||
.TAB_ON_BLUE {background-color:#e8f3f6;}
|
||||
.TAB_ON_YELLOW {background-color:#faf0da;}
|
||||
.TAB_ON_PINK {background-color:#f5ede6;}
|
||||
.TAB_ON_PINK {background-color:#faf0e8;}
|
||||
|
||||
.TAB_OFF_WHITE {background-color:#d4d4d4;}
|
||||
.TAB_OFF_GREY {background-color:#aea79f;}
|
|
@ -429,10 +429,11 @@ En OpenSWAD:
|
|||
ps2pdf source.ps destination.pdf
|
||||
*/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 18.52.3 (2019-02-21)"
|
||||
#define CSS_FILE "swad18.52.css"
|
||||
#define Log_PLATFORM_VERSION "SWAD 18.52.4 (2019-02-21)"
|
||||
#define CSS_FILE "swad18.52.4.css"
|
||||
#define JS_FILE "swad18.51.js"
|
||||
/*
|
||||
Version 18.52.4: Feb 21, 2019 Changes in pink theme. (? lines)
|
||||
Version 18.52.3: Feb 21, 2019 Fixed bug in removing of old temporary files. (237458 lines)
|
||||
Version 18.52.2: Feb 20, 2019 Fixed bug in reception of images. (237458 lines)
|
||||
Version 18.52.1: Feb 20, 2019 Messages to debug problem with files. (237425 lines)
|
||||
|
|
|
@ -500,6 +500,7 @@ void Fil_RemoveOldTmpFiles (const char *Path,time_t TimeToRemove,bool RemoveDire
|
|||
because it could have already been deleted *****/
|
||||
if (Fil_CheckIfPathExists (Path))
|
||||
if (!lstat (Path,&FileStatus)) // On success ==> 0 is returned
|
||||
{
|
||||
if (S_ISDIR (FileStatus.st_mode)) // It's a directory
|
||||
{
|
||||
/***** Scan the directory and delete recursively *****/
|
||||
|
@ -531,8 +532,10 @@ void Fil_RemoveOldTmpFiles (const char *Path,time_t TimeToRemove,bool RemoveDire
|
|||
Lay_ShowErrorAndExit ("Error while scanning directory.");
|
||||
}
|
||||
else // Not a directory
|
||||
{
|
||||
if (FileStatus.st_mtime < Gbl.StartExecutionTimeUTC - TimeToRemove)
|
||||
unlink (Path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue