Explorar o código

include 用绝对路径

visuddhinanda %!s(int64=4) %!d(string=hai) anos
pai
achega
0e8319732a
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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") {