From 070cb94b49cff84a9c7dbc5065820f8fe972358c Mon Sep 17 00:00:00 2001 From: NaiXiaoXin Date: Tue, 17 Jan 2017 23:54:20 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20HTTPS=E4=B8=8B=E9=97=A8=E6=88=B7=E9=A1=B5?= =?UTF-8?q?=E6=AD=BB=E5=BE=AA=E7=8E=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/source/function/cache/cache_portalcategory.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/upload/source/function/cache/cache_portalcategory.php b/upload/source/function/cache/cache_portalcategory.php index 495b2efcd..078f51c76 100644 --- a/upload/source/function/cache/cache_portalcategory.php +++ b/upload/source/function/cache/cache_portalcategory.php @@ -30,9 +30,9 @@ function build_cache_portalcategory() { $channelrootdomain = !empty($domain['root']) && !empty($domain['root']['channel']) ? $domain['root']['channel'] : ''; $portaldomain = ''; if(!empty($domain['app']['portal'])) { - $portaldomain = 'http://'.$domain['app']['portal'].$_G['siteroot']; + $portaldomain = $_G['scheme'].'://'.$domain['app']['portal'].$_G['siteroot']; } elseif(!empty($domain['app']['default'])) { - $portaldomain = 'http://'.$domain['app']['default'].$_G['siteroot']; + $portaldomain = $_G['scheme'].'://'.$domain['app']['default'].$_G['siteroot']; } else { $portaldomain = $_G['siteurl']; } @@ -55,7 +55,7 @@ function build_cache_portalcategory() { $value['topid'] = $topid; if($channelrootdomain && $data[$topid]['domain']){ - $url = 'http://'.$data[$topid]['domain'].'.'.$channelrootdomain.'/'; + $url = $_G['scheme'].'://'.$data[$topid]['domain'].'.'.$channelrootdomain.'/'; if($foldername) { if(!empty($value['upid'])) { @@ -89,4 +89,4 @@ function build_cache_portalcategory() { savecache('setting', $data); } -?> \ No newline at end of file +?> -- Gitee