From 1c98d3828e8d8300a43d545ca3f1580b071f4383 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Thu, 21 Feb 2019 17:48:44 +0100 Subject: [PATCH] Version 18.52.4 --- css/{swad18.52.css => swad18.52.4.css} | 2 +- swad_changelog.h | 5 +++-- swad_file.c | 3 +++ 3 files changed, 7 insertions(+), 3 deletions(-) rename css/{swad18.52.css => swad18.52.4.css} (99%) diff --git a/css/swad18.52.css b/css/swad18.52.4.css similarity index 99% rename from css/swad18.52.css rename to css/swad18.52.4.css index 3beebd5db..1c4cebcbc 100644 --- a/css/swad18.52.css +++ b/css/swad18.52.4.css @@ -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;} diff --git a/swad_changelog.h b/swad_changelog.h index a2b6879d1..3a5b81065 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -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) diff --git a/swad_file.c b/swad_file.c index ced747610..c2a1f5f90 100644 --- a/swad_file.c +++ b/swad_file.c @@ -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); + } } }