Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix for show_error()

  • Loading branch information...
commit f32e052880d363dacc1576f24b4331f63041bdf0 1 parent 983e386
OscarB authored
Showing with 5 additions and 2 deletions.
  1. +4 −1 system/libraries/Config.php
  2. +1 −1  system/libraries/Exceptions.php
View
5 system/libraries/Config.php
@@ -130,8 +130,11 @@ function load($file = '', $use_sections = FALSE, $fail_gracefully = FALSE)
else
{
if ($fail_gracefully === TRUE)
+ {
+ log_message('error', 'The configuration file '.$file.EXT.' does not exist in the search paths.');
return FALSE;
-
+ }
+
show_error('The configuration file '.$file.EXT.' does not exist in the search paths.');
}
log_message('debug', 'Config file loaded: config/'.$file.EXT);
View
2  system/libraries/Exceptions.php
@@ -139,7 +139,7 @@ function show_error($heading, $message, $template = 'error_general')
}
$buffer = ob_get_contents();
ob_end_clean();
- return $buffer;
+ echo $buffer;
}
// --------------------------------------------------------------------
Please sign in to comment.
Something went wrong with that request. Please try again.