From 13a2570ad0191959c49aa9b29b91401b77e8043f Mon Sep 17 00:00:00 2001 From: slawkens Date: Tue, 30 Jan 2024 23:04:53 +0100 Subject: [PATCH] Remove old approach of showing errors to users in database pages Currently handled by config.env --- system/functions.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/system/functions.php b/system/functions.php index a06894f6..6bd383dd 100644 --- a/system/functions.php +++ b/system/functions.php @@ -1307,14 +1307,6 @@ function getCustomPage($name, &$success): string else $tmp = $page['body']; - $php_errors = array(); - $errorHandler = function ($errno, $errstr): void - { - global $php_errors; - $php_errors[] = array('errno' => $errno, 'errstr' => $errstr); - }; - set_error_handler($errorHandler); - global $config; if(setting('core.backward_support')) { global $SQL, $main_content, $subtopic; @@ -1324,11 +1316,6 @@ function getCustomPage($name, &$success): string eval($tmp); $content .= ob_get_contents(); ob_end_clean(); - - restore_error_handler(); - if(isset($php_errors[0]) && superAdmin()) { - var_dump($php_errors); - } } else { $oldLoader = $twig->getLoader();