Bläddra i källkod

Relative path not allways work.

ahwelp 6 år sedan
förälder
incheckning
4d882f8bd8
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      bootstrap.php

+ 2 - 2
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;