Merge pull request !19 from 耐小心/PortalUrl-HTTPS

This commit is contained in:
耐小心 2017-01-19 09:03:51 +08:00 committed by 康盛Discuz!
commit 9885b3269a
1 changed files with 4 additions and 4 deletions

View File

@ -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);
}
?>
?>