mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Remove old approach of showing errors to users in database pages
Currently handled by config.env
This commit is contained in:
parent
e961f2efcf
commit
13a2570ad0
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user