Przeglądaj źródła

include 用绝对路径

visuddhinanda 4 lat temu
rodzic
commit
0e8319732a
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      public/app/studio/pc_get_pali_text.php

+ 2 - 2
public/app/studio/pc_get_pali_text.php

@@ -2,8 +2,8 @@
 /*
 加载巴利原文
  */
-include "../config.php";
-include "../public/_pdo.php";
+include __DIR__."/../config.php";
+include __DIR__."/../public/_pdo.php";
 
 $get_book = $_GET["book"];
 if (substr($get_book, 0, 1) == "p") {