From 1160102d4db0f32d86eef07a4b950cb2ae8e0304 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 4 Jan 2008 00:44:08 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20ajout=20gestion=20UTC=20pour=20phpbarcod?= =?UTF-8?q?e=20et=20valeur=20readable=20=E0=20Y=20par=20d=E9faut=20pour=20?= =?UTF-8?q?pibarcode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/includes/modules/barcode/phpbarcode.modules.php | 1 + htdocs/viewimage.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/includes/modules/barcode/phpbarcode.modules.php b/htdocs/includes/modules/barcode/phpbarcode.modules.php index 881e7c181c2..9cb3c8772f8 100644 --- a/htdocs/includes/modules/barcode/phpbarcode.modules.php +++ b/htdocs/includes/modules/barcode/phpbarcode.modules.php @@ -68,6 +68,7 @@ class modPhpbarcode extends ModeleBarCode $supported=0; if ($encoding == 'EAN8') $supported=1; if ($encoding == 'EAN13') $supported=1; + if ($encoding == 'UPC') $supported=1; if ($encoding == 'ISBN') $supported=1; if ($encoding == 'C39') $supported=1; if ($encoding == 'C128') $supported=1; diff --git a/htdocs/viewimage.php b/htdocs/viewimage.php index 3dcbcaf35e3..e6e417eb64c 100644 --- a/htdocs/viewimage.php +++ b/htdocs/viewimage.php @@ -1,6 +1,7 @@ * Copyright (C) 2005-2008 Laurent Destailleur + * Copyright (C) 2005-2008 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -306,7 +307,7 @@ if ($modulepart == 'barcode') $generator=$_GET["generator"]; $code=$_GET["code"]; $encoding=$_GET["encoding"]; - $readable=$_GET["readable"]; + $readable=$_GET["readable"]?$_GET["readable"]:"Y"; // Chargement de la classe de codage require_once($dir.$generator.".modules.php");