From 0e1d0b8a1050b2884b9756146d718e7704c9398c Mon Sep 17 00:00:00 2001 From: asoul-rec Date: Thu, 20 Apr 2023 08:31:05 -0400 Subject: [PATCH] Update common.php --- common.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/common.php b/common.php index 5eeb974..2db4139 100644 --- a/common.php +++ b/common.php @@ -2310,11 +2310,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); }