You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
286 B
PHTML
13 lines
286 B
PHTML
9 years ago
|
<?php
|
||
|
|
||
7 years ago
|
function print_error($title, $message, $response_code = 500) {
|
||
7 years ago
|
require_once(__DIR__ . '/output.php');
|
||
|
|
||
9 years ago
|
$error = array();
|
||
|
$error['type'] = 'ERROR';
|
||
|
$error['title'] = $title;
|
||
|
$error['message'] = $message;
|
||
|
|
||
7 years ago
|
print output($error, $response_code);
|
||
9 years ago
|
return;
|
||
|
}
|