|
From: | Matthieu Fauveau |
Subject: | [Dolibarr-dev] bug translate.class.php modification eldy |
Date: | Mon, 07 Feb 2005 12:43:32 +0100 |
User-agent: | Mozilla Thunderbird 1.0 (Windows/20041206) |
Bonjour la liste, Un bug dans la dernière version CVS, le fichier translate.class.php récemment modifié par eldy comporte une erreur qui genere le message "Warning: Cannot modify header information - headers already sent by (output started at /var/www/dolibarr/htdocs/main.inc.php:120) in /var/www/dolibarr/htdocs/translate.class.php on line 163" et perturbe l'affichage de dolibarr. Voici la partie de code concerné : function lang_header() { $this->load("main"); $charset=$this->trans("charset"); if (! $charset) $charset="iso-8859-1"; // header("Content-Type: text/html; charset=$charset"); $texte .= "<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=$charset\">\n"; return $texte; } J'ai donc mis en commentaire la fonction header, et tout passe correctement. Apparemment il y aurait un doublon... Cdt. Matthieu. |
[Prev in Thread] | Current Thread | [Next in Thread] |