Bladeren bron

include 用绝对路径

visuddhinanda 4 jaren geleden
bovenliggende
commit
0e8319732a
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  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") {