This commit is contained in:
asoul-rec
2023-08-21 18:10:47 +08:00
committed by GitHub
2 changed files with 3 additions and 7 deletions
+1 -5
View File
@@ -2302,11 +2302,7 @@ function render_list($path = '', $files = [])
} else {
if (!($html = getcache('customTheme'))) {
$file_path = $theme;
$tmp = curl('GET', $file_path, '', [], 1);
if ($tmp['stat']==302) {
error_log1(json_encode($tmp));
$tmp = curl('GET', $tmp["returnhead"]["Location"]);
}
$tmp = curl('GET', $file_path, '', [], 0, 1);
if (!!$tmp['body']) $html = $tmp['body'];
savecache('customTheme', $html, '', 9999);
}