From 2c0e55e701931060a80a0e45244df9f476bd3937 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 25 Jun 2010 19:08:09 +0000 Subject: [PATCH] Change to allow to use theme with no table tags --- htdocs/includes/menus/barre_top/auguria.lib.php | 8 ++++---- htdocs/includes/menus/barre_top/eldy.lib.php | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/htdocs/includes/menus/barre_top/auguria.lib.php b/htdocs/includes/menus/barre_top/auguria.lib.php index 1cc61b0ae9e..1952a582411 100644 --- a/htdocs/includes/menus/barre_top/auguria.lib.php +++ b/htdocs/includes/menus/barre_top/auguria.lib.php @@ -109,14 +109,14 @@ function print_auguria_menu($db,$atarget,$hideifnotallowed) function print_start_menu_array() { global $conf; - if (preg_match('/auguria/',$conf->top_menu)) print ''; + if (preg_match('/bluelagoon|eldy|freelug|rodolphe|yellow|dev/',$conf->css)) print '
'; else print ''; + if (preg_match('/bluelagoon|eldy|freelug|rodolphe|yellow|dev/',$conf->css)) print ''; else print ''; print "\n"; } @@ -139,7 +139,7 @@ function print_end_menu_entry() function print_end_menu_array() { global $conf; - if (preg_match('/eldy/',$conf->top_menu)) print '
'; + if (preg_match('/bluelagoon|eldy|freelug|rodolphe|yellow|dev/',$conf->css)) print ''; else print ''; print "\n"; } diff --git a/htdocs/includes/menus/barre_top/eldy.lib.php b/htdocs/includes/menus/barre_top/eldy.lib.php index 0bbf7c6700f..ca3a3da100c 100644 --- a/htdocs/includes/menus/barre_top/eldy.lib.php +++ b/htdocs/includes/menus/barre_top/eldy.lib.php @@ -461,14 +461,14 @@ function print_eldy_menu($db,$atarget,$hideifnotallowed) function print_start_menu_array() { global $conf; - if (preg_match('/eldy/',$conf->top_menu)) print ''; + if (preg_match('/bluelagoon|eldy|freelug|rodolphe|yellow|dev/',$conf->css)) print '
'; else print ''; + if (preg_match('/bluelagoon|eldy|freelug|rodolphe|yellow|dev/',$conf->css)) print ''; else print ''; print "\n"; } @@ -491,7 +491,7 @@ function print_end_menu_entry() function print_end_menu_array() { global $conf; - if (preg_match('/eldy/',$conf->top_menu)) print '
'; + if (preg_match('/bluelagoon|eldy|freelug|rodolphe|yellow|dev/',$conf->css)) print ''; else print ''; print "\n"; }