From: quix0r Date: Tue, 2 Oct 2012 21:04:22 +0000 (+0000) Subject: Added HTTP 500 error code if ext-network is not installed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a613e70bf0db622e071e0486d81231dbe8a14895;p=mailer.git Added HTTP 500 error code if ext-network is not installed --- 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');