From 2d180635efa8d49deb3aaf387fa2d1d720ace3f7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 5 Feb 2012 16:30:40 +0100 Subject: [PATCH] Fix: theme --- htdocs/theme/eldy/style.css.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index 9681c41e3e3..57ddc18af7f 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -573,21 +573,21 @@ foreach($mainmenuusedarray as $key => $val) { if (file_exists($dirroot."/".$val."/img/".$val.".png")) { - $url=dol_buildpath($path.'/'.$val.'/img/'.$val.'.png', 1); + $url=dol_buildpath('/'.$val.'/img/'.$val.'.png', 1); $found=1; break; } } // Img file not found - if (! $found && $generic <= 4) + if (! $found) { $url=dol_buildpath($path.'/theme/eldy/img/menus/generic'.$generic.".png",1); $found=1; - $generic++; + if ($generic < 4) $generic++; + print "/* A mainmenu entry but img file ".$val.".png not found, so we use a generic one */\n"; } if ($found) { - print "/* A mainmenu entry but img file ".$val.".png not found, so we use a generic one */\n"; print "div.mainmenu.".$val." {\n"; print " background-image: url(".$url.");\n"; print " height:28px;\n";