瀏覽代碼

Relative path not allways work.

ahwelp 6 年之前
父節點
當前提交
4d882f8bd8
共有 1 個文件被更改,包括 2 次插入2 次删除
  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;