summaryrefslogtreecommitdiffstats
path: root/system/core/Common.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2012-02-12 22:38:46 +0100
committerAndrey Andreev <narf@bofh.bg>2012-02-12 22:38:46 +0100
commit432b13f8e168006eac9d551c0ac463dadd3ef803 (patch)
tree6635eda43e986e11bcf11a7d04df6ec3db81912d /system/core/Common.php
parent2e430a3f3b160641c36037fbaf92457e0b3bb51e (diff)
parentde7da338e21885b9ecc4f5a64ba77ee8475960d2 (diff)
Merge remote-tracking branch 'upstream/develop' into develop-db-cubrid
Diffstat (limited to 'system/core/Common.php')
-rw-r--r--system/core/Common.php3
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.');
}