mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 01:39:22 +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
|
else
|
||||||
$tmp = $page['body'];
|
$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;
|
global $config;
|
||||||
if(setting('core.backward_support')) {
|
if(setting('core.backward_support')) {
|
||||||
global $SQL, $main_content, $subtopic;
|
global $SQL, $main_content, $subtopic;
|
||||||
@ -1324,11 +1316,6 @@ function getCustomPage($name, &$success): string
|
|||||||
eval($tmp);
|
eval($tmp);
|
||||||
$content .= ob_get_contents();
|
$content .= ob_get_contents();
|
||||||
ob_end_clean();
|
ob_end_clean();
|
||||||
|
|
||||||
restore_error_handler();
|
|
||||||
if(isset($php_errors[0]) && superAdmin()) {
|
|
||||||
var_dump($php_errors);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$oldLoader = $twig->getLoader();
|
$oldLoader = $twig->getLoader();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user