summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorThanasis Polychronakis <thanpolas@gmail.com>2012-05-20 17:44:21 +0200
committerThanasis Polychronakis <thanpolas@gmail.com>2012-05-20 17:44:21 +0200
commitf1aff707128865741a70d732283c0702183c52b3 (patch)
treef1d863786e823570ff8fbb0f7b6eae0a210cf4ba /system
parent66c982e8fa8fb0261394b63b25a3817503263d17 (diff)
Indended code to meet CI standards
Diffstat (limited to 'system')
-rw-r--r--system/core/Common.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/system/core/Common.php b/system/core/Common.php
index 01b0d8673..eb080aa2b 100644
--- a/system/core/Common.php
+++ b/system/core/Common.php
@@ -233,7 +233,8 @@ if ( ! function_exists('get_config'))
$file_path = APPPATH.'config/config.php';
$found = false;
- if (file_exists($file_path)) {
+ if (file_exists($file_path))
+ {
$found = true;
require($file_path);
}
@@ -242,7 +243,10 @@ if ( ! function_exists('get_config'))
if (defined(ENVIRONMENT) && file_exists($file_path = APPPATH.'config/'.ENVIRONMENT.'/config.php'))
{
require($file_path);
- } else if (!$found) {
+ }
+ else if (!$found)
+ {
+ set_status_header(503);
exit('The configuration file does not exist.');
}