From 4d882f8bd84f091142d66fb4869d384cbf9bc4c2 Mon Sep 17 00:00:00 2001 From: ahwelp Date: Thu, 8 Aug 2019 20:33:46 +0000 Subject: [PATCH] Relative path not allways work. --- bootstrap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap.php b/bootstrap.php index 848f6c7..59f9888 100755 --- a/bootstrap.php +++ b/bootstrap.php @@ -4,8 +4,8 @@ include_once 'vendor/autoload.php'; include_once 'config/info.php'; include_once 'publiclib.php'; -if(is_file('config/database.php')){ - include_once 'config/database.php'; +if(is_file(DIR_ROOT.'config/database.php')){ + include_once DIR_ROOT.'config/database.php'; } use Routes\RouteCollection as RouteCollection;