Skip to content
Browse files

Indended code to meet CI standards

  • Loading branch information...
1 parent b6e0b58 commit 8991cb85b9d9955270bdbbd96a08ba9141c5e11d @thanpolas committed May 20, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 system/core/Common.php
View
8 system/core/Common.php
@@ -233,7 +233,8 @@ function &get_config($replace = array())
$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 @@ function &get_config($replace = array())
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.');
}

0 comments on commit 8991cb8

Please sign in to comment.
Something went wrong with that request. Please try again.