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:
commit
fa88250f0e
@ -2614,12 +2614,7 @@ function get_href($type,$extra_info='') {
|
|||||||
case 'forum':
|
case 'forum':
|
||||||
return sprintf('%s/mailarchive/forum.php?forum_name=%s',$sf,$forum_id);
|
return sprintf('%s/mailarchive/forum.php?forum_name=%s',$sf,$forum_id);
|
||||||
case 'logo':
|
case 'logo':
|
||||||
if (! isset($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS']) != 'on')
|
return isset($_SESSION) && ! $_SESSION[APPCONFIG]->getValue('appearance','remoteurls') ? '' : sprintf('//sflogo.sourceforge.net/sflogo.php?group_id=%s&type=10',$group_id);
|
||||||
$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);
|
|
||||||
case 'sf':
|
case 'sf':
|
||||||
return sprintf('%s/projects/phpldapadmin',$sf);
|
return sprintf('%s/projects/phpldapadmin',$sf);
|
||||||
case 'web':
|
case 'web':
|
||||||
|
Loading…
Reference in New Issue
Block a user