[dev] patch: barcode.php not working

Eduardo Dominguez lalo at teligens.com
Wed Sep 24 13:45:56 PDT 2003


/util/arcode.php was not working because the factory of Horde_Image 
requires one more param.

Simple patch included.

-- 
edmz
http://www.pisotrece.com/~edmz/
-------------- next part --------------
Index: barcode.php
===================================================================
RCS file: /repository/horde/util/barcode.php,v
retrieving revision 1.3
diff -u -u -r1.3 barcode.php
--- barcode.php	16 Sep 2003 23:08:45 -0000	1.3
+++ barcode.php	24 Sep 2003 19:56:28 -0000
@@ -14,6 +14,7 @@
 
 header('Pragma: public');
 
-$image = &Horde_Image::factory(Util::getFormData('type', 'png'));
+$params = array();
+$image = &Horde_Image::factory(Util::getFormData('type', 'png'), $params);
 header('Content-type: image/png');
 echo $image->makeBarcode(Util::getFormData('barcode', 'test'));



More information about the dev mailing list