Posted by Takeo on December 23, 2011 at 12:17pm
1 follower
| Project: | Mobile Codes |
| Version: | 7.x-2.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Hi,
I generate QR Codes using Mobile Codes and phpqrcode which needs the Libraries modules. However, I need to use the version 7.x-2.0-alpha2 of Libraries for one of my module. Everything works fine with 1.0 but a change in 2.0 throws an Exception in libraries.phpqrcode.inc. It's located in the function:
<?php
function mobile_codes_libraries_phpqrcode_generate() {
require_once libraries_get_path('phpqrcode/qrlib.php');
header("Content-Type: image/png");
QRcode::png($_REQUEST['data'], NULL, $_REQUEST['level'], $_REQUEST['size'], $_REQUEST['margin']);
}
?>The first line should be replaced by
<?php
require_once libraries_get_path('phpqrcode') . '/qrlib.php';
?>in order to avoid the exception and is still works with Libraries 1.0.
Thanks if you can patch it for the next release.