Description: Use the Debian package phpqrcode
 That patch translate the QRcode request into the package syntax.
Author: Jean-Michel Vourgère <nirgal@debian.org>
Forwarded: no
Last-Update: 2015-06-12

--- ocsinventory-server-2.1.2.orig/ocsreports/plugins/main_sections/ms_computer/ms_qrcode.php
+++ ocsinventory-server-2.1.2/ocsreports/plugins/main_sections/ms_computer/ms_qrcode.php
@@ -8,7 +8,7 @@
 // code is always made freely available.
 // Please refer to the General Public Licence http://www.gnu.org/ or Licence.txt
 //====================================================================================
-require_once('libraries/qrcode/qrcode.class.php');
+require_once('/usr/share/phpqrcode/phpqrcode.php');
 require_once('require/function_admininfo.php');
 if (is_numeric($protectedGet['systemid']) and array_key_exists($protectedGet['default_value'],$array_qr_action)){
 	if ($array_qr_action[$protectedGet['default_value']]['TYPE'] == 'url')
@@ -25,10 +25,8 @@ if (is_numeric($protectedGet['systemid']
 		$val= mysql_fetch_array($res);
 		$msg=$val[$fields_info[1]];
 	}
- $qrcode = new QRcode($msg, 'H'); // error level : L, M, Q, H
-
- $qrcode->displayPNG(500,array(255,255,255),array(0,0,0));
+ QRcode::png($msg, false, QR_ECLEVEL_H, 10, 2);
 }
 
 
-?>
\ No newline at end of file
+?>
