From 89a0d1fa9b12aca7eaec782aa932bd397f8a70c8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 2 Oct 2012 21:04:22 +0000 Subject: [PATCH] Added HTTP 500 error code if ext-network is not installed --- inc/libs/network_functions.php | 2 +- network-vcheck.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/inc/libs/network_functions.php b/inc/libs/network_functions.php index bc7c2c4004..c6c5981b83 100644 --- a/inc/libs/network_functions.php +++ b/inc/libs/network_functions.php @@ -975,7 +975,7 @@ function isNetworkTypeHandlerConfigured ($networkId, $networkTypeId) { // Handles the network-payment-check request function handleNetworkPaymentCheckRequest () { - // @TODO Implement this function + // @TODO Implement this function, don't forget to set HTTP status back to '200 OK' if everything went fine reportBug(__FUNCTION__, __LINE__, 'Not yet implemented.'); } diff --git a/network-vcheck.php b/network-vcheck.php index 953e84b086..3bb6ff5734 100644 --- a/network-vcheck.php +++ b/network-vcheck.php @@ -48,6 +48,9 @@ $GLOBALS['__output_mode'] = -1; // Load the required file(s) require('inc/config-global.php'); +// Set HTTP status to 500 (if ext-network is not found, but this script is called) +setHttpStatus('500 Internal Server Error'); + // Set content type setContentType('text/plain'); -- 2.39.5