From eb80549de14956e664dfe70047889a0d4ba9a83e Mon Sep 17 00:00:00 2001 From: xiaoz Date: Thu, 28 Nov 2024 13:28:45 +0800 Subject: [PATCH 1/2] fix bug --- class/Api.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/class/Api.php b/class/Api.php index 08b5a90..e2ae280 100755 --- a/class/Api.php +++ b/class/Api.php @@ -1780,7 +1780,13 @@ class Api { //判断主题目录是否存在,如果curl_host是alpine,则视为容器,容器则将主题目录设置为data/templates $curl_host = curl_version()['host']; if( strstr($curl_host,'alpine') ) { - $theme_dir = "data/templates"; + // 默认主题一律保存到templates目录 + if( $name == "default2" ) { + $theme_dir = "templates"; + } + else{ + $theme_dir = "data/templates"; + } } else{ $theme_dir = "templates"; From 12b34bdd900d54f7d2c832f69ab19e79dd102d4f Mon Sep 17 00:00:00 2001 From: xiaoz Date: Thu, 28 Nov 2024 13:30:34 +0800 Subject: [PATCH 2/2] 0.9.37 --- version.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.txt b/version.txt index af4c062..f9b438c 100755 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -v0.9.36-20241127 \ No newline at end of file +v0.9.37-20241128 \ No newline at end of file