viewgit/inc/functions.php:22 Function utf8_encode() is deprecated [8192]

Attempt to fix message bundle file unlink notice

Chris Pollett [2023-12-17 08:Dec:th]
Attempt to fix message bundle file unlink notice
Filename
src/library/MessagesBundle.php
diff --git a/src/library/MessagesBundle.php b/src/library/MessagesBundle.php
index cdc1d1735..c9789b98a 100644
--- a/src/library/MessagesBundle.php
+++ b/src/library/MessagesBundle.php
@@ -352,7 +352,9 @@ class MessagesBundle implements CrawlConstants
         clearstatcache();
         if (!empty($filename) && file_exists($filename)) {
             $data = file_get_contents($filename);
-            unlink($filename);
+            set_error_handler(null);
+            @unlink($filename);
+            set_error_handler(C\NS_CONFIGS . "yioop_error_handler");
         } else {
             $data = false;
         }
ViewGit