diff options
| author | Horus3 | 2014-09-18 16:53:44 +0200 |
|---|---|---|
| committer | Horus3 | 2014-09-18 16:53:44 +0200 |
| commit | 3fc505c312800cb6e4f8eca3cdb9855d340b4000 (patch) | |
| tree | 5c79fc7ec01ad3670a409a2c6a862daefc7c085f /public_html/functions.php | |
| parent | 11d8a116c70cd5eb49edb8afce34a0aaac49f35e (diff) | |
| download | vfs-3fc505c312800cb6e4f8eca3cdb9855d340b4000.tar.gz | |
fixed invalid html
Diffstat (limited to 'public_html/functions.php')
| -rw-r--r-- | public_html/functions.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/public_html/functions.php b/public_html/functions.php index c185bd5..51979da 100644 --- a/public_html/functions.php +++ b/public_html/functions.php @@ -5,13 +5,15 @@ function failure($reason, $httpcode, $ajax = true, $heading = NULL){ # send header with $httpcode header($_SERVER['SERVER_PROTOCOL'] . " " . $httpcode) + # just echo the reason to the ajax response if($ajax){ - # just echo the reason to the ajax response echo htmlentities($reason); exit } // TODO: Put pretty HTML here, please + + # print full error page if($heading != NULL) echo htmlentities($heading); |
