diff options
author | Kevin Cupp <kevin.cupp@gmail.com> | 2012-02-05 20:14:32 +0100 |
---|---|---|
committer | Kevin Cupp <kevin.cupp@gmail.com> | 2012-02-05 20:14:32 +0100 |
commit | d63e40138e675df40f3a17e04972e82e7a748307 (patch) | |
tree | 02ad420bf5ec25e6e3379e1f821e4e029b00f828 /system/core/Common.php | |
parent | b211adee89f5fd2192051e9c0826146bd150f469 (diff) |
Adding in a few 503 status codes for common errors in response to this ExpressionEngine bug about errors getting cached by reverse proxies who cache 200 responses: http://expressionengine.com/bug_tracker/bug/17420
Diffstat (limited to 'system/core/Common.php')
-rw-r--r-- | system/core/Common.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/system/core/Common.php b/system/core/Common.php index 2f9c4ff43..225227d17 100644 --- a/system/core/Common.php +++ b/system/core/Common.php @@ -177,6 +177,7 @@ if ( ! function_exists('load_class')) { // Note: We use exit() rather then show_error() in order to avoid a // self-referencing loop with the Excptions class + set_status_header(503); exit('Unable to locate the specified class: '.$class.'.php'); } @@ -243,6 +244,7 @@ if ( ! function_exists('get_config')) // Fetch the config file if ( ! file_exists($file_path)) { + set_status_header(503); exit('The configuration file does not exist.'); } @@ -251,6 +253,7 @@ if ( ! function_exists('get_config')) // Does the $config array exist in the file? if ( ! isset($config) OR ! is_array($config)) { + set_status_header(503); exit('Your config file does not appear to be formatted correctly.'); } |