Explorar o código

:bug: 表名没用配置文件信息

visuddhinanda %!s(int64=4) %!d(string=hai) anos
pai
achega
0b79a82ffc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      public/app/pali_text/function.php

+ 1 - 1
public/app/pali_text/function.php

@@ -21,7 +21,7 @@ class PaliText extends Table
 		$sFirstParentTitle = "";
 		//循环查找父标题 得到整条路径
 		while ($parent > -1) {
-			$query = "select * from pali_text where \"book\" = ? and \"paragraph\" = ? limit 1";
+			$query = "SELECT * from "._TABLE_PALI_TEXT_." where \"book\" = ? and \"paragraph\" = ? limit 1";
 			$stmt = $this->dbh->prepare($query);
 			$stmt->execute(array($book, $parent));
 			$FetParent = $stmt->fetch(PDO::FETCH_ASSOC);