Merge pull request #32 from jsdevel/fixing-sflogo-protocol-for-reverse-proxies

Changing the sourceforge logo to be protocol relative.
This commit is contained in:
Deon George 2015-12-07 16:56:41 +11:00
commit fa88250f0e
1 changed files with 1 additions and 6 deletions

View File

@ -2614,12 +2614,7 @@ function get_href($type,$extra_info='') {
case 'forum':
return sprintf('%s/mailarchive/forum.php?forum_name=%s',$sf,$forum_id);
case 'logo':
if (! isset($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS']) != 'on')
$proto = 'http';
else
$proto = 'https';
return isset($_SESSION) && ! $_SESSION[APPCONFIG]->getValue('appearance','remoteurls') ? '' : sprintf('%s://sflogo.sourceforge.net/sflogo.php?group_id=%s&type=10',$proto,$group_id);
return isset($_SESSION) && ! $_SESSION[APPCONFIG]->getValue('appearance','remoteurls') ? '' : sprintf('//sflogo.sourceforge.net/sflogo.php?group_id=%s&type=10',$group_id);
case 'sf':
return sprintf('%s/projects/phpldapadmin',$sf);
case 'web':