示例#1
0
文件: Link.php 项目: burtay/bdApi
 protected static function _checkForFullLink($type, &$fullLink, &$fullLinkPrefix)
 {
     $type = parent::_checkForFullLink($type, $fullLink, $fullLinkPrefix);
     if (!empty($fullLinkPrefix)) {
         // fix issue with HTTPS requests
         $paths = XenForo_Application::get('requestPaths');
         if ($paths['protocol'] === 'https' and parse_url($fullLinkPrefix, PHP_URL_SCHEME) === 'http') {
             $fullLinkPrefix = str_replace('http://', 'https://', $fullLinkPrefix);
         }
     }
     return $type;
 }