diff --git a/htdocs/install/inc.php b/htdocs/install/inc.php index b2690f4d45a..fa611774433 100644 --- a/htdocs/install/inc.php +++ b/htdocs/install/inc.php @@ -20,19 +20,24 @@ * $Id$ * $Source$ */ + /** \file htdocs/install/inc.php \brief Fichier include du programme d'installation \version $Revision$ */ + $docurl = 'documentation'; $conffile = "../conf/conf.php"; // Defini objet langs require_once('../translate.class.php'); + $langs = new Translate('../langs'); $langs->setDefaultLang('auto'); $langs->setPhpLang(); -$tab[0]=' class="bg1"'; -$tab[1]=' class="bg2"'; + +$bc[false]=' class="bg1"'; +$bc[true]=' class="bg2"'; + function pHeader($soutitre,$next,$action='set') { global $langs; @@ -55,6 +60,7 @@ function pHeader($soutitre,$next,$action='set') } print '
'; } + function pFooter($nonext=0,$setuplang='') { global $langs; @@ -74,6 +80,7 @@ function pFooter($nonext=0,$setuplang='') print ''; print ''; } + function dolibarr_syslog($message) { // Les fonctions syslog ne sont pas toujours installés ou autorisées chez les hébergeurs diff --git a/htdocs/install/upgrade2.php b/htdocs/install/upgrade2.php index 2bde25de50b..575a352bc98 100644 --- a/htdocs/install/upgrade2.php +++ b/htdocs/install/upgrade2.php @@ -467,6 +467,8 @@ function migrate_contracts_open($db,$langs,$conf) */ function migrate_paiementfourn_facturefourn($db,$langs,$conf) { + global $bc; + $error = 0; $nb=0; $select_sql = 'SELECT rowid, fk_facture_fourn, amount '; @@ -477,7 +479,7 @@ function migrate_paiementfourn_facturefourn($db,$langs,$conf) { $select_num = $db->num_rows($select_resql); $i=0; - $var = 0; + $var = true; // Pour chaque paiement fournisseur, on insère une ligne dans paiementfourn_facturefourn while ($i < $select_num && ! $error)