Skip to content

Commit

Permalink
Error message after magnification
Browse files Browse the repository at this point in the history
  • Loading branch information
alexweissman committed Jun 17, 2015
1 parent 33373ad commit 733eebb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions userfrosting/initialize.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,14 +252,6 @@ function fatal_handler() {

}, 1);

if ($db_error){
// In case the error is because someone is trying to reinstall with new db info while still logged in, log them out
session_destroy();
$controller = new \UserFrosting\BaseController($app);
$controller->pageDatabaseError();
exit;
}

/* TODO: enable Twig caching?
$view = $app->view();
$view->parserOptions = array(
Expand All @@ -275,3 +267,11 @@ function fatal_handler() {
// Hook for core and plugins to register includes
$app->applyHook("includes.css.register");
$app->applyHook("includes.js.register");

if ($db_error){
// In case the error is because someone is trying to reinstall with new db info while still logged in, log them out
session_destroy();
$controller = new \UserFrosting\BaseController($app);
$controller->pageDatabaseError();
exit;
}

0 comments on commit 733eebb

Please sign in to comment.