80 $url = str_replace([
'http://',
'https://'],
'', $url);
83 if (mb_substr($url, 0, mb_strlen(
'#SERVER_NAME#')) ==
'#SERVER_NAME#')
85 $url = mb_substr($url, mb_strlen(
'#SERVER_NAME#'));
91 $filter = [
'=LID' => $siteId];
92 $dbSite = SiteTable::getList(array(
94 'select' => array(
'LID',
'DIR',
'SERVER_NAME'),
96 $currentSite = $dbSite->fetch();
97 $serverName = $currentSite[
'SERVER_NAME'];
98 $url = str_replace(
'#SERVER_NAME#', $serverName, $url);