diff --git a/main.php b/main.php index 1391b81cd..b81ef254f 100644 --- a/main.php +++ b/main.php @@ -96,7 +96,7 @@ if (isset($_GET['debug_profile'])) { } // Connect to database -require_once("model/DB.php"); +require_once('model/DB.php'); // Redirect to the installer if no database is selected if(!isset($databaseConfig) || !isset($databaseConfig['database']) || !$databaseConfig['database']) { diff --git a/tests/bootstrap.php b/tests/bootstrap.php index e385e321a..00af634fa 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -37,7 +37,9 @@ if(isset($_SERVER['argv'][2])) { $_GET['flush'] = 1; // Connect to database -require_once($frameworkPath . "/core/Core.php"); +require_once $frameworkPath . '/core/Core.php'; +require_once $frameworkPath . '/tests/FakeController.php'; + global $databaseConfig; DB::connect($databaseConfig);