diff --git a/htdocs/admin/barcode.php b/htdocs/admin/barcode.php index c242f727db2..51d8b3a438c 100644 --- a/htdocs/admin/barcode.php +++ b/htdocs/admin/barcode.php @@ -178,10 +178,10 @@ if ($resql) if ($module->encodingIsSupported($obj->encoding)) { - // Build barcode on disk + // Build barcode on disk (not used, this is done to make debug easier) $result=$module->writeBarCode($obj->example,$obj->encoding,'Y'); - // Output files with barcode generators + // Generate on the fly and output barcode with generator $url=DOL_URL_ROOT.'/viewimage.php?modulepart=barcode&generator='.urlencode($obj->coder).'&code='.urlencode($obj->example).'&encoding='.urlencode($obj->encoding); //print $url; print ''; diff --git a/htdocs/includes/modules/barcode/phpbarcode.modules.php b/htdocs/includes/modules/barcode/phpbarcode.modules.php index 59fd02d4587..db344179e08 100644 --- a/htdocs/includes/modules/barcode/phpbarcode.modules.php +++ b/htdocs/includes/modules/barcode/phpbarcode.modules.php @@ -85,12 +85,12 @@ class modPhpbarcode extends ModeleBarCode return $supported; } - /** - * \brief Return an image file on output - * \param $code Valeur numérique a coder - * \param $encoding Mode de codage - * \param $readable Code lisible - */ + /** + * \brief Return an image file on the fly (no need to write on disk) + * \param $code Value to encode + * \param $encoding Mode of encoding + * \param $readable Code can be read + */ function buildBarCode($code,$encoding,$readable='Y') { global $_GET,$_ENV,$_SERVER; @@ -117,10 +117,10 @@ class modPhpbarcode extends ModeleBarCode } /** - * \brief Save an image file on disk - * \param $code Valeur numérique a coder - * \param $encoding Mode de codage - * \param $readable Code lisible + * \brief Save an image file on disk (with no output) + * \param $code Value to encode + * \param $encoding Mode of encoding + * \param $readable Code can be read */ function writeBarCode($code,$encoding,$readable='Y') {