Fix IMGDIR/CSSDIR when no config.php yet and creating setting to disable remoteurls for sflogo

This commit is contained in:
Deon George
2009-07-25 18:01:05 +10:00
parent a1cfa2f60c
commit 869b9be7e9
3 changed files with 12 additions and 2 deletions

View File

@@ -2518,7 +2518,7 @@ function get_href($type,$extra_info='') {
case 'forum':
return sprintf('%s/mailarchive/forum.php?forum_name=%s',$sf,$forum_id);
case 'logo':
return sprintf('http://sflogo.sourceforge.net/sflogo.php?group_id=%s&type=8',$group_id);
return isset($_SESSION) && ! $_SESSION[APPCONFIG]->getValue('appearance','remoteurls') ? '' : sprintf('http://sflogo.sourceforge.net/sflogo.php?group_id=%s&type=8',$group_id);
case 'sf':
return sprintf('%s/projects/phpldapadmin',$sf);
case 'web':