Update common.php

pull/686/head
asoul-rec 2023-04-20 08:31:05 -04:00 committed by GitHub
parent 238befc7ff
commit 0e1d0b8a10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -2310,11 +2310,7 @@ function render_list($path = '', $files = [])
} else { } else {
if (!($html = getcache('customTheme'))) { if (!($html = getcache('customTheme'))) {
$file_path = $theme; $file_path = $theme;
$tmp = curl('GET', $file_path, '', [], 1); $tmp = curl('GET', $file_path, '', [], 0, 1);
if ($tmp['stat']==302) {
error_log1(json_encode($tmp));
$tmp = curl('GET', $tmp["returnhead"]["location"]);
}
if (!!$tmp['body']) $html = $tmp['body']; if (!!$tmp['body']) $html = $tmp['body'];
savecache('customTheme', $html, '', 9999); savecache('customTheme', $html, '', 9999);
} }