We're reworking the error handler#

This commit is contained in:
ReCaffeinated 2016-08-22 15:35:36 -05:00 committed by jove
parent 06a6ae7bea
commit d0d83ab8d7
3 changed files with 13 additions and 44 deletions

View file

@ -325,7 +325,7 @@ if (isset($_POST['delete'])) {
$post['file_tmp'] = tempnam($config['tmp'], 'url');
function unlink_tmp_file($file) {
@unlink($file);
fatal_error_handler();
error();
}
register_shutdown_function('unlink_tmp_file', $post['file_tmp']);