forked from leftypol/leftypol
We're reworking the error handler#
This commit is contained in:
parent
06a6ae7bea
commit
d0d83ab8d7
3 changed files with 13 additions and 44 deletions
2
post.php
2
post.php
|
@ -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']);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue