From af0654271dc7ced8327828b37d5538becc7635f3 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sun, 17 Dec 2006 12:28:00 +0000 Subject: [PATCH] Synchro --- htdocs/admin/produit.php | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/htdocs/admin/produit.php b/htdocs/admin/produit.php index f8667899f82..7f5979bc58f 100644 --- a/htdocs/admin/produit.php +++ b/htdocs/admin/produit.php @@ -300,10 +300,8 @@ if(is_dir($dir)) if (substr($file, strlen($file) -10) == '.class.php' && substr($file,0,8) == 'product.') { $parts = explode('.',$file); - $classname = 'Product'.ucfirst($parts[1]); - - require_once($dir.$file); - + $classname = 'Product'.ucfirst($parts[1]); + require_once($dir.$file); $module = new $classname(); $var=!$var; @@ -312,9 +310,7 @@ if(is_dir($dir)) print $module->description; print ''; - - - + if (defined ("PRODUIT_SPECIAL_LIVRE") && PRODUIT_SPECIAL_LIVRE == 1) { print img_tick(); @@ -327,9 +323,7 @@ if(is_dir($dir)) print ''.$langs->trans("Activate").''; } - print ''; - - print ''; + print ''; } } closedir($handle); @@ -339,9 +333,6 @@ else print "ERROR: $dir is not a directory !\n"; } - - - print ''; $db->close();