Permalink
Browse files

Indended code to meet CI standards

  • Loading branch information...
1 parent 66c982e commit f1aff707128865741a70d732283c0702183c52b3 @thanpolas committed May 20, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 system/core/Common.php
View
@@ -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)
@alexbilbie

alexbilbie May 20, 2012

This line should should read

else if ( ! $found)

+ {
+ set_status_header(503);
exit('The configuration file does not exist.');
}

0 comments on commit f1aff70

Please sign in to comment.