summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorReCaffeinated <devonyardpersonal@gmail.com>2016-08-22 15:35:36 -0500
committerjove <no@no.com>2016-08-22 22:19:48 +0100
commitd0d83ab8d7669a38700dfc04229a279f6c0e482c (patch)
treebec3785c5685c9579a63427d03996f0baf17cd3b /post.php
parent06a6ae7bea8fad080997e1ec1fd6595b5c164257 (diff)
We're reworking the error handler#
Diffstat (limited to 'post.php')
-rw-r--r--post.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/post.php b/post.php
index 99ef4850..0022f178 100644
--- a/post.php
+++ b/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']);