Skip to content

Commit

Permalink
Merge from github for functions.inc.php.
Browse files Browse the repository at this point in the history
  • Loading branch information
cclark61 committed Aug 28, 2014
2 parents 1551e60 + da9a938 commit ed79e85
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions framework/app_logic/logic2/functions.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ function execute_page_controller(&$page, $args=false)
// Display: "Page Not Found"
//============================================================
if ($throw_404) {
$controller = "{$controller_path}/error/controller_404.php";
if (file_exists($controller)) { include($controller); }
$controller_404 = "{$controller_path}/error/controller_404.php";
if (file_exists($controller_404)) { include($controller_404); }
else {
if (BUFFER_PAGE) { ob_end_clean(); }
die('404 controller not found.');
Expand All @@ -107,8 +107,8 @@ function execute_page_controller(&$page, $args=false)
// Display: "Page Error"
//============================================================
else if ($throw_500 || isset($_SESSION['throw_500'])) {
$controller = "{$controller_path}/error/controller_500.php";
if (file_exists($controller)) { include($controller); }
$controller_500 = "{$controller_path}/error/controller_500.php";
if (file_exists($controller_500)) { include($controller_500); }
else {
if (BUFFER_PAGE) { ob_end_clean(); }
die('500 controller not found.');
Expand Down Expand Up @@ -176,4 +176,4 @@ function load_plugin($plugin)
$GLOBALS['pco']->load_plugin($plugin);
}

?>
?>

0 comments on commit ed79e85

Please sign in to comment.