diff --git a/htdocs/index.php b/htdocs/index.php index bb543bf76c4..2a20964444d 100644 --- a/htdocs/index.php +++ b/htdocs/index.php @@ -702,13 +702,6 @@ if (sizeof($boxarray)) } } -// Juste pour éviter bug IE qui réorganise mal div précédents si celui-ci absent -/*if (empty($conf->browser->firefox)) -{ - print '
 
'; -}*/ - - $db->close(); llxFooter('$Date$ - $Revision$'); diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php index ebe4106b897..8715d3d5e3b 100644 --- a/htdocs/lib/functions.lib.php +++ b/htdocs/lib/functions.lib.php @@ -1866,8 +1866,11 @@ function print_titre($titre) * \param picto Icon to use before title (should be a 32x32 transparent png file) * \param pictoisfullpath 1=Icon name is a full absolute url of image */ -function print_fiche_titre($titre, $mesg='', $picto='title.gif', $pictoisfullpath=0) +function print_fiche_titre($titre, $mesg='', $picto='title.png', $pictoisfullpath=0) { + global $conf; + if (empty($conf->browser->firefox) && $picto=='title.png') $picto='title.gif'; + print "\n"; print ''; if ($picto && $titre) print ''; @@ -1898,6 +1901,7 @@ function print_fiche_titre($titre, $mesg='', $picto='title.gif', $pictoisfullpat function print_barre_liste($titre, $page, $file, $options='', $sortfield='', $sortorder='', $center='', $num=-1, $totalnboflines=0, $picto='title.png', $pictoisfullpath=0) { global $conf,$langs; + if (empty($conf->browser->firefox) && $picto=='title.png') $picto='title.gif'; if ($num > $conf->liste_limit or $num == -1) { diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index dcd25540953..bac590168b1 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -640,8 +640,8 @@ $bc[1]="class=\"pair\""; $yesno[0]="no"; $yesno[1]="yes"; -// Constantes utilisees pour definir le nombre de lignes des textarea -if (! eregi("firefox",$_SERVER["HTTP_USER_AGENT"])) +// Constants used to defined number of lines in textarea +if (empty($conf->browser->firefox)) { define('ROWS_1',1); define('ROWS_2',2);
'.img_picto('',$picto, '', $pictoisfullpath).'