From 4214954ea169e6cf6b9a7b2927dce892463c851c Mon Sep 17 00:00:00 2001 From: maTh Date: Sun, 21 Aug 2022 22:44:03 +0200 Subject: Improved: error page (#4465) * error page: true HTML page * error page: http500 erorr * error page: add CSP header * 'log.txt' replaced by LOG_FILENAME * use ADMIN_LOG * log.txt => LOG_FILENAME * error message: add * Docs created * delete: documentation on error message page * line break added * added: new line at the end * typo fixed * Update lib/lib_rss.php Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr> * Update lib/lib_rss.php Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr> * Minz HTTP 500 Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr> --- p/i/index.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'p/i') diff --git a/p/i/index.php b/p/i/index.php index 949d82aec..48cedfc92 100755 --- a/p/i/index.php +++ b/p/i/index.php @@ -35,7 +35,7 @@ if (!file_exists($applied_migrations_path)) { require(LIB_PATH . '/http-conditional.php'); $currentUser = Minz_Session::param('currentUser', ''); $dateLastModification = $currentUser === '' ? time() : max( - @filemtime(join_path(USERS_PATH, $currentUser, 'log.txt')), + @filemtime(join_path(USERS_PATH, $currentUser, LOG_FILENAME)), @filemtime(join_path(DATA_PATH, 'config.php')) ); if (httpConditional($dateLastModification, 0, 0, false, PHP_COMPRESSION, true)) { @@ -64,7 +64,6 @@ if (!file_exists($applied_migrations_path)) { if ($error) { syslog(LOG_INFO, 'FreshRSS Fatal error! ' . $error); - Minz_Log::error($error); - die(errorMessageInfo('Fatal error', $error)); + FreshRSS::killApp($error); } } -- cgit v1.2.3