From b6500224d310dcb35806ed9feb57850c0cc58973 Mon Sep 17 00:00:00 2001 From: Deon George Date: Thu, 28 Apr 2011 11:53:40 +1000 Subject: [PATCH] Minor cosmetic updates --- lib/TemplateRender.php | 11 ++++++++--- lib/functions.php | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/TemplateRender.php b/lib/TemplateRender.php index 1f01a6f..e68f8d4 100644 --- a/lib/TemplateRender.php +++ b/lib/TemplateRender.php @@ -1992,13 +1992,18 @@ function fillRec(id,value) { protected function drawMenuAttribute($attribute) { if (DEBUGTMP) printf('%s
',__METHOD__); + $result = ''; $item = ''; - echo ''; - echo '
 '; foreach (array('add','modify','rename') as $action) if ($item = $this->get('MenuItem',$attribute,$action)) - printf('
%s
',$item); + $result .= sprintf('
%s
',$item); + + if (! $result) + return; + + echo ''; + printf('',$result); echo ''; echo '
 %s
'; } diff --git a/lib/functions.php b/lib/functions.php index 72c9919..7993086 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -2555,7 +2555,7 @@ function get_href($type,$extra_info='') { else $proto = 'https'; - return isset($_SESSION) && ! $_SESSION[APPCONFIG]->getValue('appearance','remoteurls') ? '' : sprintf('%s://sflogo.sourceforge.net/sflogo.php?group_id=%s&type=8',$proto,$group_id); + 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': return sprintf('%s/projects/phpldapadmin',$sf); case 'web':