Browse Source

Merge pull request #202 from helloxz/dev

Dev
main 0.9.37
xiaoz 4 weeks ago committed by GitHub
parent
commit
ed95ea0836
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      class/Api.php
  2. 2
      version.txt

8
class/Api.php

@ -1780,7 +1780,13 @@ class Api {
//判断主题目录是否存在,如果curl_host是alpine,则视为容器,容器则将主题目录设置为data/templates //判断主题目录是否存在,如果curl_host是alpine,则视为容器,容器则将主题目录设置为data/templates
$curl_host = curl_version()['host']; $curl_host = curl_version()['host'];
if( strstr($curl_host,'alpine') ) { if( strstr($curl_host,'alpine') ) {
$theme_dir = "data/templates"; // 默认主题一律保存到templates目录
if( $name == "default2" ) {
$theme_dir = "templates";
}
else{
$theme_dir = "data/templates";
}
} }
else{ else{
$theme_dir = "templates"; $theme_dir = "templates";

2
version.txt

@ -1 +1 @@
v0.9.36-20241127 v0.9.37-20241128
Loading…
Cancel
Save